src/Radius.php
public function removeAttribute($type)
    {
        $index = -1;
        if (is_array($this->attributesToSend)) {
            foreach($this->attributesToSend as $i => $attr) {
                if (is_array($attr)) {
                    $tmp = $attr[0];
                } else {
                    $tmp = $attr;
                }
                if ($type == ord(substr($tmp, 0, 1))) {
                    unset($this->attributesToSend[$i]);
                    break;
                }
            }
        }

        return $this;
    }
public function removeAttribute($type)
    {
        $index = -1;
        if (is_array($this->attributesToSend)) {
            foreach($this->attributesToSend as $i => $attr) {
                if (is_array($attr)) {
                    $tmp = $attr[0];
                } else {
                    $tmp = $attr;
                }
                if ($type == ord(substr($tmp, 0, 1))) {
                    unset($this->attributesToSend[$i]);
                    break;
                }
            }
        }

        return $this;
    }
public function removeAttribute ( $ type ) { $ index = - 1 ; if ( is_array ( $ this -> attributesToSend ) ) { foreach ( $ this -> attributesToSend as $ i => $ attr ) { if ( is_array ( $ attr ) ) { $ tmp = $ attr [ 0 ] ; } else { $ tmp = $ attr ; } if ( $ type == ord ( substr ( $ tmp , 0 , 1 ) ) ) { unset ( $ this -> attributesToSend [ $ i ] ) ; break ; } } } return $ this ; }
Remove an attribute from a RADIUS packet

@param number $type  The attribute number to remove
@return \Dapphp\Radius\Radius
Remove an attribute from a RADIUS packet