public function valuesAt()
    {
        $args = func_get_args();

        if (is_array($args[0])) {
            $args = $args[0];
        }

        $hash = $this->create();

        foreach ($args as $key) {
            $hash[] = $this[$key];
        }

        return $hash;
    }
public function valuesAt()
    {
        $args = func_get_args();

        if (is_array($args[0])) {
            $args = $args[0];
        }

        $hash = $this->create();

        foreach ($args as $key) {
            $hash[] = $this[$key];
        }

        return $hash;
    }
public function valuesAt ( ) { $ args = func_get_args ( ) ; if ( is_array ( $ args [ 0 ] ) ) { $ args = $ args [ 0 ] ; } $ hash = $ this -> create ( ) ; foreach ( $ args as $ key ) { $ hash [ ] = $ this [ $ key ] ; } return $ hash ; }
Get the values at the given indexes.

Both work the same:
<code>
$hash->valuesAt(array('a', 'b'));
$hash->valuesAt('a', 'b');
</code>

@param mixed keys

@return Hash containing the values at the given keys
Get the values at the given indexes .