note 15503 deleted from function.strrpos by didou

From: Date: Sun, 10 Aug 2003 03:09:36 +0000
Subject: note 15503 deleted from function.strrpos by didou
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-53792@lists.php.net to get a copy of this message
Note Submitter: linuxbaby@yahoo.com ---- /* CHANGE "lastname, firstname" TO "firstname lastname" OR ** "rolling stones, the" TO "the rolling stones" */ if (strstr($somename, ", ")) { $newend = substr ($somename, 0, strrpos($somename, ", ")); $newbeginning = substr ($somename, (strrpos($somename, ", ")+2)); $somename = $newbeginning . " " . $newend; }

« previous php.notes (#53792) next »