Pergunta

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
Foi útil?

Solução

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

Outras dicas

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

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top