Question

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
Was it helpful?

Solution

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

OTHER TIPS

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top