Reads bytes and advances the stream position by the same count.
Parameters
$handle
Avifinfostreamrequired- Bytes will be read from this resource.
$num_bytes
intrequired- Number of bytes read. Must be greater than 0.
Source
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.