close
[php]strpbrk — 在字符串中查找一組字符的任何一個字符
官方範例
<?php
$text = 'This is a Simple text.';
// 輸出 "is is a Simple text.",因為 'i' 先被匹配
echo strpbrk($text, 'mi');
// 輸出 "Simple text.",因為字符區分大小寫
echo strpbrk($text, 'S');
?>
全站熱搜