Hi,
I was wondering if anyone could please explain why the following doesn't work.
<?php
$ImageURLs=array();
$ImageURLs[0]="something.gif";
$ImageURLs[1]="some.jpg";
function getImageName($number){
return $ImageURLs[$number];
}
echo getImageName(0);
echo getImageName(1);
?>
The doesn't display anything, but I would think that it would
Thanks for any suggestions.
Jeff