Avifinfo

read()WP 1.0

Reads bytes and advances the stream position by the same count.

Хуков нет.

Возвращает

binary. string|false The raw bytes or false on failure.

Использование

read( $handle, $num_bytes );
$handle(stream) (обязательный)
Bytes will be read from this resource.
$num_bytes(int) (обязательный)
Number of bytes read. Must be greater than 0.

Код read() WP 6.6.2

function read( $handle, $num_bytes ) {
  $data = fread( $handle, $num_bytes );
  return ( $data !== false && strlen( $data ) >= $num_bytes ) ? $data : false;
}