note 28756 added to function.strstr

From: Date: Thu, 23 Jan 2003 02:07:17 +0000
Subject: note 28756 added to function.strstr
Groups: php.notes 
Request: Send a blank email to php-notes+get-42621@lists.php.net to get a copy of this message
//If you want to get the text before the occurence of the character //you want to find, simply use the function strRev twice: $stringA = "user@example.com"; $toFind = "@"; echo strrev( strchr(strrev($stringA),$toFind) ); //output: user@ -- http://www.php.net/manual/en/function.strstr.php http://master.php.net/manage/user-notes.php?action=edit+28756 http://master.php.net/manage/user-notes.php?action=delete+28756 http://master.php.net/manage/user-notes.php?action=reject+28756

« previous php.notes (#42621) next »