Now throws a ValueError if characters
is empty.
Previously, an E_WARNING was raised and false was returned.
Examples
Example #1 strpbrk() example
<?php
$text = 'This is a Simple text.';
// this echoes "is is a Simple text." because 'i' is matched first
echo strpbrk($text, 'mi'), PHP_EOL;
// this echoes "Simple text." because chars are case sensitive
echo strpbrk($text, 'S'), PHP_EOL;
?>
See Also
strpos() - Find the position of the first occurrence of a substring in a string