<?
$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;
?>
Published in: PHP
Download

Related snippets