note 98266 added to function.strrchr

From: Date: Sat, 05 Jun 2010 02:32:46 +0000
Subject: note 98266 added to function.strrchr
Groups: php.notes 
Request: Send a blank email to php-notes+get-169900@lists.php.net to get a copy of this message
Don't forget the use of "trim" in conjunction with "strrchr" $email = "somone@gmail.com"; $domain = trim('@', strrchr('@', $email)); // returns "gmail.com" or $file = "somefile.jpg"; $fileType = trim('.', strrchr('.', $file)); // returns "jpg" ---- Server IP: 64.71.164.2 Probable Submitter: 74.97.55.78 ---- Manual Page -- http://www.php.net/manual/en/function.strrchr.php Edit -- https://master.php.net/note/edit/98266 Del: integrated -- https://master.php.net/note/delete/98266/integrated Del: useless -- https://master.php.net/note/delete/98266/useless Del: bad code -- https://master.php.net/note/delete/98266/bad+code Del: spam -- https://master.php.net/note/delete/98266/spam Del: non-english -- https://master.php.net/note/delete/98266/non-english Del: in docs -- https://master.php.net/note/delete/98266/in+docs Del: other reasons-- https://master.php.net/note/delete/98266 Reject -- https://master.php.net/note/reject/98266 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#169900) next »