Articles → PHP → Strchr Function In PhpStrchr Function In PhpIn this article, we will discuss the strchr function in PHP.Purpose The strchr is an alias of the strstr function. The strchr function finds the first instance of the word in the string.Example <!DOCTYPE html> <html> <body> <?php echo strchr("strchr function is an alias of strstr function!","alias"); ?> </body> </html>Output Click to EnlargePosted By - Karan Gupta Posted On - Monday, November 2, 2020 Query/Feedback Your Email Id** Subject* Query/Feedback Characters remaining 250**
<!DOCTYPE html> <html> <body> <?php echo strchr("strchr function is an alias of strstr function!","alias"); ?> </body> </html>
Query/Feedback