- Data Structure
- Networking
- RDBMS
- Operating System
- Java
- MS Excel
- iOS
- HTML
- CSS
- Android
- Python
- C Programming
- C++
- C#
- MongoDB
- MySQL
- Javascript
- PHP
- Physics
- Chemistry
- Biology
- Mathematics
- English
- Economics
- Psychology
- Social Studies
- Fashion Studies
- Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
strpbrk() function in PHP
The strpbrk() function is used to search a string for a specific character.
Syntax
strpbrk(str, charlist)
Parameters
str − The string to search
charlist − The characters to find
Return
The strpbrk() function returns a string starting from the character found, or false if it is not found.
Example
The following is an example −
<?php echo strpbrk("malayalam", "yk"); ?>
Output
yalam
Example
Let us see another example to learn about the case sensitivity feature of the function −<?php echo strpbrk("DEMO Text", "epl"); ?>
Output
ext
Advertisements