PHP strpbrk() FunctionThe strpbrk() function is predefine string function of PHP. It is used to search a string for any of the specified characters or search a string for any of a set of character. Note: This function strpbrk() is case-sensitive.Syntax:
It returns the rest of the string from where it found the first occurrence of any of the specified character. Example 1Output: Your string:Hello javatpoint By using 'strpbrk()' function:ello javatpoint Example 2Output: Your string:This is a Simple text. By using 'strpbrk()' function:Simple text. Example 3Output: Your string:This is a Simple text. By using 'strpbrk()' function: is is a Simple text. See Also :
Reference: http://php.net/manual/en/function.strpbrk.php Next TopicPHP String |
We provides tutorials and interview questions of all technology like java tutorial, android, java frameworks
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India