I am very new in php and I would know php has function for evaluate specified unicode char exists in another string.

$str="Hello world";

echo *function*($str, "e")  //print true

echo *function*($str, "y")  //print false
有帮助吗?

解决方案

Try mb_strpos() or mb_stripos() look at http://www.php.net/manual/en/function.mb-stripos.php

其他提示

Use strpos for example which find the position of the first occurrence of a substring in a string

http://www.php.net/manual/fr/function.strpos.php

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top