public function toAttr($prefix='', $suffix='') {
        $attrs = array();
        if ($this->width !== FALSE) {
            $attrs[] = 'width="'.addslashes($this->width).'"';
        }
        if ($this->height !== FALSE) {
            $attrs[] = 'height="'.addslashes($this->height).'"';
        }
        return $prefix.implode(' ', $attrs).$suffix;
    }
public function toAttr($prefix='', $suffix='') {
        $attrs = array();
        if ($this->width !== FALSE) {
            $attrs[] = 'width="'.addslashes($this->width).'"';
        }
        if ($this->height !== FALSE) {
            $attrs[] = 'height="'.addslashes($this->height).'"';
        }
        return $prefix.implode(' ', $attrs).$suffix;
    }
public function toAttr ( $ prefix = '' , $ suffix = '' ) { $ attrs = array ( ) ; if ( $ this -> width !== FALSE ) { $ attrs [ ] = 'width="' . addslashes ( $ this -> width ) . '"' ; } if ( $ this -> height !== FALSE ) { $ attrs [ ] = 'height="' . addslashes ( $ this -> height ) . '"' ; } return $ prefix . implode ( ' ' , $ attrs ) . $ suffix ; }
translate the current dimension data
to attribute width="xxx" height="yyy"

@return string HTML/XML attribute width and height
translate the current dimension data to attribute width = xxx height = yyy