Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

tableau aléatoire php


<?php
$input = array("Neo", "Morpheus", "Trinity", "Cypher", "Tank");
$rand_keys = array_rand($input, 2);
echo $input[$rand_keys[0]] . "
";
echo $input[$rand_keys[1]] . "
";
?>

Source by www.php.net #
 
PREVIOUS NEXT
Tagged: #tableau #php
ADD COMMENT
Topic
Name
3+3 =