php tutorial: stristr function example tutorial
Definition and usage
The stristr() function searches for the first occurrence of other strings within a series.
This function returns the rest of the string (from the matching point), or FALSE if the string search is not found.
Grammar
stristr(string,search)
string: required, search for the specified character
search: required. Search for the specified string. If this argument is a number, it will seek to match the number of ASCII values for the character
Tips and Instructions NOTE: This feature is binary safe. Note: This feature is case sensitive. For case-sensitive searches, use strstr().
Example 1
echo stristr("Hello world!","WORLD");
?>
Returned as .wordl!