@maniero/

ShuffleArray

PHP Web Server

No description

fork
loading
Files
  • index.php
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
<?php
$numeros = range(0, 9);
shuffle($numeros);
$id = array_slice($numeros, 1, 9);
$mult = "";
for ($i = 0; $i < 9; $i++) {
    $mult .= $id[$i];
}
for ($i = 0; $i < 9; $i++) {
   echo $id[$i];
}

//https://pt.stackoverflow.com/q/49145/101