this code is working $pictures = array('100_2021.JPG', '100_7688.JPG'); shuffle($pictures); why this code is not working $clean = '100_7688.JPG'; $clean2 = 'carmel.jpg'; $clean = "' ".$clean."' "." , "."' ".$clean2. " ' " ; $pictures = array($clean); shuffle($pictures); Please Help
why don't you try this? $clean = '100_7688.JPG'; $clean2 = 'carmel.jpg'; $pictures = array($clean, $clean2); shuffle($pictures);
does it mean that you can't store literal texts separated by comma into a single variable and use it in array?
http://us2.php.net/manual/en/language.types.array.php discusses creating arrays. You should give it a careful read. And, thanks for not posting in those crappy colors in your response.