strpbrk()

It searches a string for any of the specified characters.

Example

<?php
echo strpbrk(“phpcode”,”co”);
?>

Output

code

Share