note 15503 added to function.strrpos

From: Date: Fri, 14 Sep 2001 08:58:36 +0000
Subject: note 15503 added to function.strrpos
Groups: php.notes 
Request: Send a blank email to php-notes+get-18013@lists.php.net to get a copy of this message
/* 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; } http://www.php.net/manual/en/function.strrpos.php

« previous php.notes (#18013) next »