PHP beginner |
|
welke van de 3 is goed of kunnen ze allemaal?
<?php
$getal1 = $_SESSION['getal1'] = rand ($Gmin, $Gmax);
$getal2 = $_SESSION['getal2'] = rand ($Gmin, $Gmax);
while($getal1 == $getal2) {
unset($_SESSION['getal2']);
// $getal 2 opnieuw setten
$getal2 = $_SESSION['getal2'] = rand($Gmin, $Gmax);
}
?>
<?php $getal1 = $_SESSION['getal1'] = rand ($Gmin, $Gmax); $getal2 = $_SESSION['getal2'] = rand ($Gmin, $Gmax); while($getal1 == $getal2) { unset($_SESSION['getal2']); // $getal 2 opnieuw setten $getal2 = $_SESSION['getal2'] = rand($Gmin, $Gmax); } ?>
<?php
$getal1 = $_SESSION['getal1'] = rand ($Gmin, $Gmax);
$getal2 = $_SESSION['getal2'] = rand ($Gmin, $Gmax);
while($getal1 == $getal2) {
unset($_SESSION['getal2']);
}
// $getal 2 opnieuw setten
$getal2 = $_SESSION['getal2'] = rand($Gmin, $Gmax);
?>
<?php $getal1 = $_SESSION['getal1'] = rand ($Gmin, $Gmax); $getal2 = $_SESSION['getal2'] = rand ($Gmin, $Gmax); while($getal1 == $getal2) { unset($_SESSION['getal2']); } // $getal 2 opnieuw setten $getal2 = $_SESSION['getal2'] = rand($Gmin, $Gmax); ?>
<?php
$getal1 = $_SESSION['getal1'] = rand ($Gmin, $Gmax);
$getal2 = $_SESSION['getal2'] = rand ($Gmin, $Gmax);
while($getal1 == $getal2) {
unset($_SESSION['getal2']);
// $getal 2 opnieuw setten
$getal2 = rand($Gmin, $Gmax);
}
$_SESSION['getal2'] = $getal2;
?>
<?php $getal1 = $_SESSION['getal1'] = rand ($Gmin, $Gmax); $getal2 = $_SESSION['getal2'] = rand ($Gmin, $Gmax); while($getal1 == $getal2) { unset($_SESSION['getal2']); // $getal 2 opnieuw setten $getal2 = rand($Gmin, $Gmax); } $_SESSION['getal2'] = $getal2; ?>
|