How to use strpbrk in PHP
In this article I will explain how strpbrk function used in PHP.
strpbrk() Function
This function returns the rest of the string from where it found the first specified character, otherwise it returns FALSE.
Syntax
Parameter |
Description |
string |
String to be search |
charlist |
It Specifies the characters to find |
Example
<html>
<body>
<?php
echo strpbrk("Honesty is a good policy !","oe");
?>
</body>
</html> |
Output
You may also want to read these related articles Click here
Ask Your Question
Got a programming related question? You may want to post your question here
Programming Answers here