note 77200 deleted from function.stristr by nlopess

From: Date: Sun, 28 Oct 2007 16:01:58 +0000
Subject: note 77200 deleted from function.stristr by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-131791@lists.php.net to get a copy of this message
Note Submitter: daniel at dbks com ar ---- 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 ?>

« previous php.notes (#131791) next »