src/Radius.php
public function getReadableReceivedAttributes()
    {
        $attributes = '';

        if (isset($this->attributesReceived)) {
            foreach($this->attributesReceived as $receivedAttr) {
                $info = $this->getAttributesInfo($receivedAttr[0]);
                $attributes .= sprintf('%s: ', $info[0]);

                if (26 == $receivedAttr[0]) {
                    $vendorArr = $this->decodeVendorSpecificContent($receivedAttr[1]);
                    foreach($vendorArr as $vendor) {
                        $attributes .= sprintf('Vendor-Id: %s, Vendor-type: %s, Attribute-specific: %s',
                                               $vendor[0], $vendor[1], $vendor[2]);
                    }
                } else {
                    $attribues = $receivedAttr[1];
                }

                $attributes .= "<br>\n";
            }
        }

        return $attributes;
    }
public function getReadableReceivedAttributes()
    {
        $attributes = '';

        if (isset($this->attributesReceived)) {
            foreach($this->attributesReceived as $receivedAttr) {
                $info = $this->getAttributesInfo($receivedAttr[0]);
                $attributes .= sprintf('%s: ', $info[0]);

                if (26 == $receivedAttr[0]) {
                    $vendorArr = $this->decodeVendorSpecificContent($receivedAttr[1]);
                    foreach($vendorArr as $vendor) {
                        $attributes .= sprintf('Vendor-Id: %s, Vendor-type: %s, Attribute-specific: %s',
                                               $vendor[0], $vendor[1], $vendor[2]);
                    }
                } else {
                    $attribues = $receivedAttr[1];
                }

                $attributes .= "<br>\n";
            }
        }

        return $attributes;
    }
public function getReadableReceivedAttributes ( ) { $ attributes = '' ; if ( isset ( $ this -> attributesReceived ) ) { foreach ( $ this -> attributesReceived as $ receivedAttr ) { $ info = $ this -> getAttributesInfo ( $ receivedAttr [ 0 ] ) ; $ attributes .= sprintf ( '%s: ' , $ info [ 0 ] ) ; if ( 26 == $ receivedAttr [ 0 ] ) { $ vendorArr = $ this -> decodeVendorSpecificContent ( $ receivedAttr [ 1 ] ) ; foreach ( $ vendorArr as $ vendor ) { $ attributes .= sprintf ( 'Vendor-Id: %s, Vendor-type: %s, Attribute-specific: %s' , $ vendor [ 0 ] , $ vendor [ 1 ] , $ vendor [ 2 ] ) ; } } else { $ attribues = $ receivedAttr [ 1 ] ; } $ attributes .= "<br>\n" ; } } return $ attributes ; }
For debugging purposes.  Print the attributes from the last received packet as a readble string

@return string  The RADIUS packet attributes in human readable format
For debugging purposes . Print the attributes from the last received packet as a readble string