note 77200 added to function.stristr
| From: | danielatdbkscomar at osu1 dot php dot net | Date: | Mon, 20 Aug 2007 03:00:20 +0000 |
| Subject: | note 77200 added to function.stristr | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-129628@lists.php.net to get a copy of this message | ||
i used the script of 'notepad', but with a little modification for comfortably usage ^^
<?
function stristr_reverse($haystack, $needle) {
$pos = stripos($haystack, $needle) + strlen($needle);
return substr($haystack, 0, $pos);
}
$email = 'USER@EXAMPLE.com';
$proceso1 = stristr_reverse($email, '@');
$emailuser = substr($proceso1,0,strlen($proceso1) -1);
echo "Thanks $emailuser for Registering with.. blabla";
//Thanks USER for Registering with.. blabla
?>
----
Server IP: 80.64.47.13
Probable Submitter: 190.64.92.49
----
Manual Page -- http://www.php.net/manual/en/function.stristr.php
Edit -- https://master.php.net/note/edit/77200
Del: integrated -- https://master.php.net/note/delete/77200/integrated
Del: useless -- https://master.php.net/note/delete/77200/useless
Del: bad code -- https://master.php.net/note/delete/77200/bad+code
Del: spam -- https://master.php.net/note/delete/77200/spam
Del: non-english -- https://master.php.net/note/delete/77200/non-english
Del: in docs -- https://master.php.net/note/delete/77200/in+docs
Del: other reasons-- https://master.php.net/note/delete/77200
Reject -- https://master.php.net/note/reject/77200
Search -- https://master.php.net/manage/user-notes.php