I am using the following function to display all the images in an array on a page. In a separate scenario I would like to be able to display only the first image in the array. How would I modify this function.
[embed=425,349]$array=glob(‘images/size_2/*’);
foreach($array as $v){
echo ‘
’;
}[/embed]
Thanks in advance for any help you can offer