private function matches($pattern, $subject)
    {
        if (preg_match($pattern, $subject, $matches)) {
            $args = array();

            foreach ($matches as $key => $value) {
                if (!is_int($key)) {
                    $args[$key] = $value;
                }
            }

            return $args;
        }

        return false;
    }
private function matches($pattern, $subject)
    {
        if (preg_match($pattern, $subject, $matches)) {
            $args = array();

            foreach ($matches as $key => $value) {
                if (!is_int($key)) {
                    $args[$key] = $value;
                }
            }

            return $args;
        }

        return false;
    }
private function matches ( $ pattern , $ subject ) { if ( preg_match ( $ pattern , $ subject , $ matches ) ) { $ args = array ( ) ; foreach ( $ matches as $ key => $ value ) { if ( ! is_int ( $ key ) ) { $ args [ $ key ] = $ value ; } } return $ args ; } return false ; }
Performs a pattern match on a string and returns just
the named matches or false if no match

@param  mixed       $pattern
@param  mixed       $subject
@return array|false
Performs a pattern match on a string and returns just the named matches or false if no match