please help I need create some array random from this case:
foreach (range(1,3) as $number) {
$lala1= "\"img$number\",";
$lala2 = array("$lala1");
echo $lala2[array_rand($lala2)];
}
Is give me this result:
"img1","img2","img3",
but I need the result to show random like this:
img1 (with random img1,img2, or img3)
Thank you