Why is this not appropriate?
http://www.tehplayground.com/#UREUvT4yr
$str = 'Bülow'; if(stristr($str, 'BÜLOW')){ echo 'match'; } else{ echo 'no match'; }
same problem with strtolower
strtolower
echo strtolower('BÜLOW'); // returns: bÜlow
Use mb_*functions ( mb_stristr) because they can work with multiple byte characters. PHP strings are really byte arrays. They do not know what a character is.
mb_*
mb_stristr
Source: https://habr.com/ru/post/1650824/More articles:What is rescache.hit? - c ++Passing IQueryable as a parameter - c #Jenkins section - MSBuild missing from system configuration - jenkinsМожно ли использовать Ansible authorized_key exclusive с несколькими ключами? - ubuntuSetting value by slice index and conditional strings - pythondplyr и tidyr - вычисление сразу нескольких линейных моделей с факторами - rHighrise API returns 404 error - node.jsFile with pipe separators with empty entries; convert to tab delimiter with "" between - bashMake the vertical space limit constant equal to the percentage of screen height - iosNPM engines - package.json #All Articles