How to use strchr in PHP

In this article I will explain how strchr function used in PHP.
  • 1343

strchr() Function

This function searches for the first string into another string.

Syntax

strchr(string,search)

 

 Parameter  Description
 string   string to search
 search  Specifies the string to search for.

Example

<html>
<body>
<?php
echo strchr("Hello Neha!","Neha");
?>
</html>
</body>

Output

strchr-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.