?? [str??]

n.?; ?, ?? ??; ?

vt. ?????? ????

3?? ??: ??? ??: ??? ?? ??: ??? ?? ??: strung ?? ??: strung


PHP strpbrk() ?? ???

??: ???? ?? ???? ?? ??

??: ??string strpbrk(string $haystack, string $char_list)

????:

ParametersDescription
haystack ? ????? char_list? ????.
char_list ? ????? ????? ?????.

??: ??? ??? ???? ?? ???? ?????. ?? ? ??? FALSE? ?????.

PHP strpbrk() ?? ?

<?php
$data = "hello php.cn";
echo strpbrk($data,"op");
?>

???? ???

??? ????? ??? "???? ??" ??? ?????

??:

o php.cn


<?php
$data = "Learning PHP in php.cn is a good choice";
echo strpbrk($data,"php");
?>

???? ???

??' ??? ??? ? ??

??:

php.cn is a good choice