public function delete($name) {

        if ( array_key_exists($name, $this->data) ) {
            unset($this->data[$name]);
            return true;
        }

        return false;

    }
public function delete($name) {

        if ( array_key_exists($name, $this->data) ) {
            unset($this->data[$name]);
            return true;
        }

        return false;

    }
public function delete ( $ name ) { if ( array_key_exists ( $ name , $ this -> data ) ) { unset ( $ this -> data [ $ name ] ) ; return true ; } return false ; }
Delete a task from table

@param string $name
@return bool
Delete a task from table