Html/Element.php
public function getAttribute($key)
    {
        return isset($this->_attr[$key]) ? $this->_attr[$key] : null;
    }
public function getAttribute($key)
    {
        return isset($this->_attr[$key]) ? $this->_attr[$key] : null;
    }
public function getAttribute ( $ key ) { return isset ( $ this -> _attr [ $ key ] ) ? $ this -> _attr [ $ key ] : null ; }
Returns the requested attribute if it exists.

@param string $key
@return mixed|null
Returns the requested attribute if it exists .