And $somarray[ has more than four values.
Try inserting the following line at after $somearray has been created and filled with values...
print '<pre>'; print_r($somearray); print '</pre>';
That will display the array in nice format. I think you'll find that the indexes of the array are not what you think they are.
-- Stuart
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php