PHP function strpbrk()

Availability in PHP 5.0

Search a string for any of a set of characters

Parameters

Parameter Data type Default value Note
$haystack string not The string where char_list is looked for.
$char_list string not This parameter is case sensitive.

Return values

string

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

Other resources

Official strpbrk documentation

Newsletter

Nejlepsi tipy a triky o PHP do Vaseho e-mailu. Clanky a novinky nejen ze sveta PHP a programovani.