LOADING STUFF...

PHP字符串函数strpbrk()的用法

技术教程11小时前发布 北陌
3 0 0

PHP字符串函数strpbrk()的用法

strpbrk

(PHP 5)

strpbrk — 在字符串中查找一组字符的任何一个字符

说明

string strpbrk
( string $haystack
, string $char_list
)

strpbrk() 函数在 haystack 字符串中查找 char_list 中的字符。

参数

haystack

在此字符串中查找 char_list。

char_list

该参数区分大小写。

返回值

返回一个以找到的字符开始的子字符串。如果没有找到,则返回 FALSE

范例

Example #1 strpbrk() 范例

$text

© 版权声明

相关文章

暂无评论

暂无评论...