|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2005-06-03 18:00 UTC] a dot bendilas at zefxis dot gr
Description:
------------
For Greek strings stripos doesn't work case insensitively.
Reproduce code:
---------------
<?php echo stripos('Σκύλος','σκύλος'); ?>
Expected result:
----------------
0
Actual result:
--------------
false
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 18:00:01 2025 UTC |
It's a pity that it doesn't... Here's a multibyte enabled workaround for stripos: function mb_stripos($haystack, $needle, $offset = 0) { return (mb_strpos(mb_strtolower($haystack), mb_strtolower($needle),$offset)); }