note 76225 added to function.mb-strpos

From: Date: Fri, 06 Jul 2007 05:42:36 +0000
Subject: note 76225 added to function.mb-strpos
Groups: php.notes 
Request: Send a blank email to php-notes+get-128258@lists.php.net to get a copy of this message
Hello, Just replaced strpos() with mb_strpos() and now I am getting following error: PHP Warning: mb_strpos() [<a href='function.mb-strpos'>function.mb-strpos</a>]: Empty delimiter PHP version: 5.2.3 OS: Win XP Prof Web Server: IIS I checked your bugs and mentioned that mb_string functions have been fixed as of 5.2.0 but it does not seem to be the case (Bug #39400). My code: ============================================== $charOut = mb_substr($tmpStr, $tmpKey[0], 1); $posOut = mb_strpos($charList, $charOut); if ($posOut !== FALSE) { // do something here } ============================================== ---- Server IP: 69.147.83.197 Probable Submitter: 70.69.129.62 ---- Manual Page -- http://www.php.net/manual/en/function.mb-strpos.php Edit -- https://master.php.net/note/edit/76225 Del: integrated -- https://master.php.net/note/delete/76225/integrated Del: useless -- https://master.php.net/note/delete/76225/useless Del: bad code -- https://master.php.net/note/delete/76225/bad+code Del: spam -- https://master.php.net/note/delete/76225/spam Del: non-english -- https://master.php.net/note/delete/76225/non-english Del: in docs -- https://master.php.net/note/delete/76225/in+docs Del: other reasons-- https://master.php.net/note/delete/76225 Reject -- https://master.php.net/note/reject/76225 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#128258) next »