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
}