Switching First & Last Names in List

From: Date: Tue, 16 Mar 2004 15:24:57 +0000
Subject: Switching First & Last Names in List
Groups: php.general 
Request: Send a blank email to php-general+get-180547@lists.php.net to get a copy of this message
If I have a list like this: Firstname1 LastName1 Firstname2 Lastname2 etc. I can split the names by \n to put them into an array which will then be output into an <option> list for a form. But how do I reverse the names so that the last name is first? Also, how do I handle people with three names? Thanks. Jeff Oien

« previous php.general (#180547) next »