how to insert a variable within the search array?
something like that
<?php
$imagename = ' forest ';
?>
<?php
$myImageslist = array (
'city.png'
'forest.png'
'fruit.png '
'Color.png'
);
shuffle ($myImagesList);
if (($key = array_search ("$imagename.png" $myImagesList))! == false) {
array_splice ($myImagesList, $ key, 1);
?>
what would be the best way to do this?