Files
php_8/functions/local.php
2022-05-10 22:29:05 +03:00

10 lines
371 B
PHP
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
function simple()
{
$i = rand(); // записывает в $i случайное число
echo "$i<br />"; // выводит его на экран
// Эта $i не имеет к глобальной $i никакого отношения!
}
// Выводит в цикле 10 случайных чисел
for ($i = 0; $i != 10; $i++) simple();