Articles → PHP → Strstr Function In PHP

Strstr Function In PHP






Purpose





Syntax


strstr(input_string, string_to_be_searched)



Example


<!DOCTYPE html>
<html>

<body>
	<?php
echo strstr("My website name is gyansangrah.com","website");
?>
</body>

</html>



Output


Picture showing the output of strstr function in PHP
Click to Enlarge


Posted By  -  Karan Gupta
 
Posted On  -  Thursday, October 1, 2020

Query/Feedback


Your Email Id
 
Subject
 
Query/FeedbackCharacters remaining 250