public function del($key, $subKey = null)
    {
        if (!is_null($subKey) && (is_array($this->data[$key]))) {
            unset($this->data[$key][$subKey]);
        } else {
            unset($this->data[$key]);
        }
    }
public function del($key, $subKey = null)
    {
        if (!is_null($subKey) && (is_array($this->data[$key]))) {
            unset($this->data[$key][$subKey]);
        } else {
            unset($this->data[$key]);
        }
    }
public function del ( $ key , $ subKey = null ) { if ( ! is_null ( $ subKey ) && ( is_array ( $ this -> data [ $ key ] ) ) ) { unset ( $ this -> data [ $ key ] [ $ subKey ] ) ; } else { unset ( $ this -> data [ $ key ] ) ; } }
Deletes specific key with options subkey entry in data

@param string $key    The key to set value for
@param string $subKey The optional subKey to set value for

@return void
Deletes specific key with options subkey entry in data