Source Code:
(back to article)
<?php $string = "Hello World"; $search = "Wld"; $result = strpbrk($string, $search); if ($result !== false) { echo "Found '$result' in '$string'"; } else { echo "Did not find any characters in '$search' in '$string'"; }
Result:
Report an issue