strcasestr 

$strcasecmp(haystack,needle)

The strcasestr function returns a 1 if needle is found somewhere within haystack, ignoring case. Otherwise, it returns a 0.

Example:
if ($strcasestr($(gmap),fort)) cmd /say_stat * We are currently playing some map with the word fort in it.;