[snip] If I have a list like this: Firstname1 LastName1 Firstname2 Lastname2 etc. [/snip]
do the split or explode for each item ... if(3 == count($arrayFoo)){ echo "<option>" . $arrayFoo[2] . " " . $arrayFoo[1] . " " . $arrayFoo[0] . "</option>"; } else { echo "<option>" . $arrayFoo[1] . " " . $arrayFoo[0] . "</option>"; } -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php