src/Radius.php
public function decodeVendorSpecificContent($rawValue)
    {
        $result   = array();
        $offset   = 0;
        $vendorId = (ord(substr($rawValue, 0, 1)) * 256 * 256 * 256) +
                    (ord(substr($rawValue, 1, 1)) * 256 * 256) +
                    (ord(substr($rawValue, 2, 1)) * 256) +
                     ord(substr($rawValue, 3, 1));

        $offset += 4;
        while ($offset < strlen($rawValue)) {
            $vendorType        = (ord(substr($rawValue, 0 + $offset, 1)));
            $vendorLength      = (ord(substr($rawValue, 1 + $offset, 1)));
            $attributeSpecific = substr($rawValue, 2 + $offset, $vendorLength);
            $result[]          = array($vendorId, $vendorType, $attributeSpecific);
            $offset           += $vendorLength;
        }

        return $result;
    }
public function decodeVendorSpecificContent($rawValue)
    {
        $result   = array();
        $offset   = 0;
        $vendorId = (ord(substr($rawValue, 0, 1)) * 256 * 256 * 256) +
                    (ord(substr($rawValue, 1, 1)) * 256 * 256) +
                    (ord(substr($rawValue, 2, 1)) * 256) +
                     ord(substr($rawValue, 3, 1));

        $offset += 4;
        while ($offset < strlen($rawValue)) {
            $vendorType        = (ord(substr($rawValue, 0 + $offset, 1)));
            $vendorLength      = (ord(substr($rawValue, 1 + $offset, 1)));
            $attributeSpecific = substr($rawValue, 2 + $offset, $vendorLength);
            $result[]          = array($vendorId, $vendorType, $attributeSpecific);
            $offset           += $vendorLength;
        }

        return $result;
    }
public function decodeVendorSpecificContent ( $ rawValue ) { $ result = array ( ) ; $ offset = 0 ; $ vendorId = ( ord ( substr ( $ rawValue , 0 , 1 ) ) * 256 * 256 * 256 ) + ( ord ( substr ( $ rawValue , 1 , 1 ) ) * 256 * 256 ) + ( ord ( substr ( $ rawValue , 2 , 1 ) ) * 256 ) + ord ( substr ( $ rawValue , 3 , 1 ) ) ; $ offset += 4 ; while ( $ offset < strlen ( $ rawValue ) ) { $ vendorType = ( ord ( substr ( $ rawValue , 0 + $ offset , 1 ) ) ) ; $ vendorLength = ( ord ( substr ( $ rawValue , 1 + $ offset , 1 ) ) ) ; $ attributeSpecific = substr ( $ rawValue , 2 + $ offset , $ vendorLength ) ; $ result [ ] = array ( $ vendorId , $ vendorType , $ attributeSpecific ) ; $ offset += $ vendorLength ; } return $ result ; }
Decodes a vendor specific attribute in a response packet

@param string $rawValue  The raw packet attribute data as seen on the wire
@return array  Array of vendor specific attributes in the response packet
Decodes a vendor specific attribute in a response packet