PHP strpbrk() Function

PHP strncmp() Function
PHP strpos() Function

what is the syntax of the STRPBRK() function in php?

stringRequired. Specifies the string to search
charlistRequired. Specifies the characters to find
PHP STRPBRK() method

examples of the STRPBRK() function

Example 1. In this example, we search a string for the characters “oe”, and return the rest of the string from where it found the first occurrence of the specified characters.

echo strpbrk("Hello world!","oe");

Example 2. This function is case-sensitive (“W” and “w” will not output the same):

echo strpbrk("Hello world!","W");
echo "<br>";
echo strpbrk("Hello world!","w");
PHP strncmp() Function
PHP strpos() Function

Add comment

Tutor Network

Share this

Learn PHP from A to Z