문제

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