public function cut($key)  
    {
        //argument 1 must be scalar
        Eden_Array_Argument::i()->test(1, 'scalar');

        //if nothing to cut
        if (!isset($this->data[$key])) {
            //do nothing
            return $this;
        }

        //unset the value
       unset($this->data[$key]);
        //reindex the list
        $this->data = array_values($this->data);
        return $this;
    }
public function cut($key)  
    {
        //argument 1 must be scalar
        Eden_Array_Argument::i()->test(1, 'scalar');

        //if nothing to cut
        if (!isset($this->data[$key])) {
            //do nothing
            return $this;
        }

        //unset the value
       unset($this->data[$key]);
        //reindex the list
        $this->data = array_values($this->data);
        return $this;
    }
public function cut ( $ key ) { //argument 1 must be scalar Eden_Array_Argument :: i ( ) -> test ( 1 , 'scalar' ) ; //if nothing to cut if ( ! isset ( $ this -> data [ $ key ] ) ) { //do nothing return $ this ; } //unset the value unset ( $ this -> data [ $ key ] ) ; //reindex the list $ this -> data = array_values ( $ this -> data ) ; return $ this ; }
Removes a row in an array and adjusts all the indexes

@param *scalar $key the key to leave out

@return this
Removes a row in an array and adjusts all the indexes