public static function contains($haystack, $needle, $ignoreCase = false)
    {
        if ($ignoreCase) {
            $needle = strtolower($needle);
            $haystack = strtolower($haystack);
        }
        $pos = strpos($haystack, $needle);

        return !($pos === false);
    }
public static function contains($haystack, $needle, $ignoreCase = false)
    {
        if ($ignoreCase) {
            $needle = strtolower($needle);
            $haystack = strtolower($haystack);
        }
        $pos = strpos($haystack, $needle);

        return !($pos === false);
    }
public static function contains ( $ haystack , $ needle , $ ignoreCase = false ) { if ( $ ignoreCase ) { $ needle = strtolower ( $ needle ) ; $ haystack = strtolower ( $ haystack ) ; } $ pos = strpos ( $ haystack , $ needle ) ; return ! ( $ pos === false ) ; }
Return true if haystack contains needle.

@param string $haystack   The string to check for needle existence.
@param string $needle     The string to find in the haystack.
@param bool   $ignoreCase Set to true to ignore case.

@return bool
Return true if haystack contains needle .