read( Avifinfostream $handle, int $num_bytes ): Avifinfobinary

In this article

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


Bytes will be read from this resource.
Number of bytes read. Must be greater than 0.


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


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

User Contributed Notes

You must log in before being able to contribute a note or feedback.