2
There is a correct way to do this highlighted code snippet?
$numeros = range(0, 9);
shuffle($numeros);
$id = array_slice($numeros, 1, 9);
$mult = $id[0].$id[1].$id[2].$id[3].$id[4].$id[5].$id[6].$id[7].$id[8];
echo $mult;
that is, my intention is to transform a array in a simple variable for later use, in this case
$mult = $id[0].$id[1].$id[2].$id[3].$id[4].$id[5].$id[6].$id[7].$id[8];
could be done in a more professional way?
What do you call the most professional way? You want to do without repeating the variable 9 times?
– Maniero
exactly @bigown , I was wondering if there’s a way to just not repeat 9 times the same thing.
– flourigh