How to use strpbrk in PHP

In this article I will explain how strpbrk function used in PHP.
  • 1468

strpbrk() Function

This function returns the rest of the string from where it found the first  specified character, otherwise it returns FALSE.

Syntax

strpbrk(string,charlist)

 

 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

strpbrk-php.jpg

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

Categories

More Articles

© 2020 DotNetHeaven. All rights reserved.