a::search PHP Méthode

    static function search($array, $search)
    {
        return preg_grep('#' . preg_quote($search) . '#i', $array);
    }