note 76225 deleted from function.mb-strpos by googleguy
| From: | googleguy@php.net | Date: | Tue, 22 Oct 2013 08:00:01 +0000 |
| Subject: | note 76225 deleted from function.mb-strpos by googleguy | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-196707@lists.php.net to get a copy of this message | ||
Note Submitter: zangaru at hotmail dot com
----
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
}
==============================================