note 74184 added to function.strrpos

From: Date: Thu, 29 Mar 2007 04:38:32 +0000
Subject: note 74184 added to function.strrpos
Groups: php.notes 
Request: Send a blank email to php-notes+get-124903@lists.php.net to get a copy of this message
Just a quick note for those using this function - the returned number if a match is found is the index from the *beginning* of your string. That is to say, that although the function searches beginning at the end of your string, it returns an index counting from the beginning of your string. strrpos('0123456789', '7') returns 7, it does not return 2. ---- Server IP: 69.147.83.197 Probable Submitter: 74.101.86.70 ---- Manual Page -- http://www.php.net/manual/en/function.strrpos.php Edit -- https://master.php.net/note/edit/74184 Del: integrated -- https://master.php.net/note/delete/74184/integrated Del: useless -- https://master.php.net/note/delete/74184/useless Del: bad code -- https://master.php.net/note/delete/74184/bad+code Del: spam -- https://master.php.net/note/delete/74184/spam Del: non-english -- https://master.php.net/note/delete/74184/non-english Del: in docs -- https://master.php.net/note/delete/74184/in+docs Del: other reasons-- https://master.php.net/note/delete/74184 Reject -- https://master.php.net/note/reject/74184 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#124903) next »