public function remove($attribute, $value = null)
        {
            $attribute = strval($attribute);

            if(\Thin\Arrays::exists($attribute, $this->attributes)) {
                if(null === $value) {
                    unset($this->attributes[$attribute]);
                } else {
                    $value = strval($value);
                    foreach($this->attributes[$attribute] as $k => $v) {
                        if($v == $value) {
                            unset($this->attributes[$attribute][$k]);
                        }
                    }
                }
            }

            return $this;
        }
public function remove($attribute, $value = null)
        {
            $attribute = strval($attribute);

            if(\Thin\Arrays::exists($attribute, $this->attributes)) {
                if(null === $value) {
                    unset($this->attributes[$attribute]);
                } else {
                    $value = strval($value);
                    foreach($this->attributes[$attribute] as $k => $v) {
                        if($v == $value) {
                            unset($this->attributes[$attribute][$k]);
                        }
                    }
                }
            }

            return $this;
        }
public function remove ( $ attribute , $ value = null ) { $ attribute = strval ( $ attribute ) ; if ( \ Thin \ Arrays :: exists ( $ attribute , $ this -> attributes ) ) { if ( null === $ value ) { unset ( $ this -> attributes [ $ attribute ] ) ; } else { $ value = strval ( $ value ) ; foreach ( $ this -> attributes [ $ attribute ] as $ k => $ v ) { if ( $ v == $ value ) { unset ( $ this -> attributes [ $ attribute ] [ $ k ] ) ; } } } } return $ this ; }
Remove an attribute or a value

@param string $attribute The attribute name to remove(or to remove a value from)
@param string $value The value to remove from the attribute. Omit the parametre to remove the entire attribute.

@return \Thin\Html\Attributes Provides a fluent interface
Remove an attribute or a value