Definition
The strpbrk() function searches a string(case-sensitive) for any of the specified characters.
Syntax
strpbrk(string, charlist)
Parameters
Parameter | Description |
---|---|
string |
Required. Specifies the string to search. |
charlist |
Required. Specifies the characters to find. |
Example
<?php
echo strpbrk("Welcome to PHP!", "ep");