- mt_rand: documentation ( source)
<?php
$a = array("one", "two", "three", "four");
$b = array("one", "two", "three", "four");
foreach ($a as &$e) {
$e = $e . mt_rand(0,10);
}
foreach ($b as $e) {
$e = $e . mt_rand(0,10);
}
foreach ($a as $e) {
echo $e . PHP_EOL;
}
foreach ($b as $e) {
echo $e . PHP_EOL;
}