Magic::offsetunset PHP Méthode

offsetunset() public méthode

Convenience method for removing property value
public offsetunset ( $key ) : null
$key string
Résultat null
    function offsetunset($key)
    {
        if (Base::instance()->visible($this, $key)) {
            unset($this->{$key});
        } else {
            $this->clear($key);
        }
    }