Question:What is the functionality of the function strstr and stristr?
Answer
strstr():
The strstr() function returns the remainder of a string beginning with the first occurrence of a predefined string.Its prototype follows:
string strstr(string str, string occurrence[,bool before_needle])
stristr():
Same as strstr() function except the search of for the pattern in case insensitive.