public static function inArraySearch(array $subjects, $search)
    {
        foreach ($subjects as $subject) {
            if (str_is($search . '*', $subject)) {
                return true;
            }
        }

        return false;
    }
public static function inArraySearch(array $subjects, $search)
    {
        foreach ($subjects as $subject) {
            if (str_is($search . '*', $subject)) {
                return true;
            }
        }

        return false;
    }
public static function inArraySearch ( array $ subjects , $ search ) { foreach ( $ subjects as $ subject ) { if ( str_is ( $ search . '*' , $ subject ) ) { return true ; } } return false ; }
Checks an array for the first value that starts with a given pattern

@param array $subjects
@param string $search

@return bool
Checks an array for the first value that starts with a given pattern