Numbers shuffle in between range using PHP

by Francis 2013-01-25 10:27:02

Numbers shuffle in between range using PHP

<?php
$num = range(1, 10); // To range between a number 1 to 10
shuffle($num); // To Shuffle a number in 1 to 10
foreach ($num as $no)
{
echo "$no"; // To display a number as shuffled in range of 1 to 10;
}
?>

Note :
$num = range(0, 100, 10); // To numbers are 0, 10, 20, 30, ..., 100
$char = range(a, s); // To display characters between a and s;
$chars = range(z, a); // To display characters reverse order in z to a;
563
like
0
dislike
0
mail
flag

You must LOGIN to add comments