Hi,
This is probably a very stupid question...
How does one find out what the index is of a particular array element?
I have an array of image names, and given a particular image name, I'd like to know where it is in the array.
e.g.
$img_array = ('img1', 'img2', 'img3', ...);
echo $img_array[2]; would give me 'img3'. but how do I find out that 'img3' is the 3rd element?
Thanks
Ted