note 60791 added to function.mb-strpos

From: Date: Mon, 16 Jan 2006 20:38:14 +0000
Subject: note 60791 added to function.mb-strpos
Groups: php.notes 
Request: Send a blank email to php-notes+get-101939@lists.php.net to get a copy of this message
This function seems useless if you want to test if needle is at the begin of haystack since it would return 0 at success and FALSE otherwise. But 0 and FALSE are the same, i.e. if returned FALSE the following if is true if (mb_strpos($haystack, "Needle") == 0) { ... } ---- Server IP: 217.13.201.10Probable Submitter: 212.204.66.66 (proxied: 83.171.155.35) ---- Manual Page -- http://www.php.net/manual/en/function.mb-strpos.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+60791 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+60791&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+60791&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+60791&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+60791&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+60791&report=yes&reason=non-english Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+60791&report=yes&reason=already+in+docs Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+60791&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+60791&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#101939) next »