PHP 5, PHP 7, PHP 8
strpbrk - Search a string for any of a set of characters

strpbrk( string$string, string$characters ): string|false

strpbrk searches the string string for a characters.



The string where characters is looked for.


This parameter is case sensitive.

Return Values

Returns a string starting from the character found, or false if it is not found.

Related Functions

Example of strpbrk

Show all examples for strpbrk

PHP Version:

Function strpbrk:

Strings Functions

Most used PHP functions