PHP Scratch - repeat check
Scratch - repeat check
<?
$show = "1";
$test = rand(1,3);
function check($test,$show) {
if ($test == $show) { $test = rand(1,3); $test = check($test,$show); }
return $test;
}
$a = check($test,$show);
echo $a;
?>
<?
$show = "1";
$test = rand(1,3);
function check($test,$show) {
if ($test == $show) { $test = rand(1,3); $test = check($test,$show); }
return $test;
}
$a = check($test,$show);
echo $a;
?>