Easy Tutorial
❮ Func Math Cosh Php Mysql Create Table ❯

PHP strpbrk() Function

PHP String Reference Manual

Example

Searches for the characters "oe" in a string and returns the remainder of the string starting from the first occurrence of the specified characters:


Definition and Usage

The strpbrk() function searches a string for any of the specified characters.

Note: This function is case-sensitive.

It returns the remainder of the string starting from the first occurrence of the specified characters. If not found, it returns FALSE.


Syntax

Parameter Description
string Required. Specifies the string to be searched.
charlist Required. Specifies the characters to find.

Technical Details

Return Value: Returns the string starting from the searched character. If not found, returns FALSE.
PHP Version: 5+
--- ---

More Examples

Example 1

This function is case-sensitive ("W" and "w" produce the same output):


❮ Func Math Cosh Php Mysql Create Table ❯