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
Click to Enlarge