AMFReader::readMixedArray() –

You appear to be a bot. Output may be restricted

Description

Usage

$array = AMFReader::readMixedArray();

Parameters

Returns

array

Source

File name: wordpress/wp-includes/ID3/module.audio-video.flv.php
Lines:

1 to 21 of 21
  public function readMixedArray() {
    // Get highest numerical index - ignored
    $highestIndex = $this->stream->readLong();

    $data = array();
    $key = null;

    while ($key = $this->stream->readUTF()) {
      if (is_numeric($key)) {
        $key = (int) $key;
      }
      $data[$key] = $this->AMFReader::readData();
    }
    // Mixed array record ends with empty string (0x00 0x00) and 0x09
    if (($key == '') && ($this->stream->peekByte() == 0x09)) {
      // Consume byte
      $this->stream->readByte();
    }

    return $data;
  }
 

 View on GitHub View on Trac