PHP.nl

mb_stristr

mb_stristr

Finds first occurrence of a string within another, case insensitive

 **mb_stristr** string $haystack string $needle bool $before_needle  $encoding
finds the first occurrence of
in 

and returns the portion of . Unlike , is case-insensitive. If is not found, it returns false. mb_stristr``needle``haystack``haystack``mb_strstr``mb_stristr``needle

haystack The string from which to get the first occurrence of needle

needle The string to find in haystack

before_needle Determines which portion of this function returns. If set to true, it returns all of
from the beginning to the first occurrence of (excluding needle). If set to false, it returns all of from the first occurrence of to the end (including needle). haystack``haystack``needle``haystack``needle

encoding

Returns the portion of , or false if is not found. haystack``needle

stristr``strstr``mb_strstr