src/Radius.php
public function getAttribute($type)
    {
        $value = null;

        if (is_array($this->attributesReceived)) {
            foreach($this->attributesReceived as $attr) {
                if (intval($type) == $attr[0]) {
                    $value = $attr[1];
                    break;
                }
            }
        }

        return $value;
    }
public function getAttribute($type)
    {
        $value = null;

        if (is_array($this->attributesReceived)) {
            foreach($this->attributesReceived as $attr) {
                if (intval($type) == $attr[0]) {
                    $value = $attr[1];
                    break;
                }
            }
        }

        return $value;
    }
public function getAttribute ( $ type ) { $ value = null ; if ( is_array ( $ this -> attributesReceived ) ) { foreach ( $ this -> attributesReceived as $ attr ) { if ( intval ( $ type ) == $ attr [ 0 ] ) { $ value = $ attr [ 1 ] ; break ; } } } return $ value ; }
Get the value of an attribute from the last received RADIUS response packet.

@param int $type    The attribute ID to get
@return NULL|string NULL if no such attribute was set in the response packet, or the data of that attribute
Get the value of an attribute from the last received RADIUS response packet .