php stristr

php stristr is one of the most build in library function in PHP, it searches for the first occurrence of a string inside another string and returns the rest of the string from the matching string.

echo stristr(“Good Morning!”,”Morning”);

Output

Morning!

 

echo stristr(“Good Morning! Dear”,”Morning”);

Output

Morning! Dear

 

Return Value: Returns the rest of the string from the matching string.

 

My Thought

Your email address will not be published. Required fields are marked *

Our Tool : hike percentage calculator