Gen. partnerAlgotech

PHP function strpbrk()

Search a string for any of a set of characters

|
September 11, 2019

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

Loading comments...

Stay in the loop

Subscribe to our newsletter and get the latest cybersecurity news delivered straight to your inbox.

Your data is safe. You can unsubscribe from the newsletter at any time.