Amfphp_Core_Amf_Deserializer::readMixedObject PHP Method

readMixedObject() protected method

readMixedObject reads the name/value properties of the amf Packet and converts numeric looking keys to numeric keys
protected readMixedObject ( ) : array
return array The php array with the object data
    protected function readMixedObject()
    {
        $ret = array();
        // init the array
        $this->amf0storedObjects[] =& $ret;
        $key = $this->readUTF();
        // grab the key
        for ($type = $this->readByte(); $type != 9; $type = $this->readByte()) {
            $val = $this->readData($type);
            // grab the value
            if (is_numeric($key)) {
                $key = (double) $key;
            }
            $ret[$key] = $val;
            // save the name/value pair in the array
            $key = $this->readUTF();
            // get the next name
        }
        return $ret;
        // return the array
    }