(PHP 5, PHP 7)
strpbrk — 锟斤拷锟街凤拷锟斤拷锟叫诧拷锟斤拷一锟斤拷锟街凤拷锟斤拷锟轿猴拷一锟斤拷锟街凤拷
$haystack
, string $char_list
) : string
strpbrk() 锟斤拷锟斤拷锟斤拷 haystack
锟街凤拷锟斤拷锟叫诧拷锟斤拷 char_list
锟叫碉拷锟街凤拷锟斤拷
haystack
锟节达拷锟街凤拷锟斤拷锟叫诧拷锟斤拷 char_list
锟斤拷
char_list
锟矫诧拷锟斤拷锟斤拷锟街达拷小写锟斤拷
锟斤拷锟斤拷一锟斤拷锟斤拷锟揭碉拷锟斤拷锟街凤拷锟斤拷始锟斤拷锟斤拷锟街凤拷锟斤拷锟斤拷锟斤拷锟矫伙拷锟斤拷业锟斤拷锟斤拷蚍祷锟� FALSE
锟斤拷
Example #1 strpbrk() 锟斤拷锟斤拷
<?php
$text = 'This is a Simple text.';
// 锟斤拷锟� "is is a Simple text."锟斤拷锟斤拷为 'i' 锟饺憋拷匹锟斤拷
echo strpbrk($text, 'mi');
// 锟斤拷锟� "Simple text."锟斤拷锟斤拷为锟街凤拷锟斤拷锟街达拷小写
echo strpbrk($text, 'S');
?>