fread

PHP 4, PHP 5, PHP 7, PHP 8
fread - Binary-safe file read
Manual
Code Examples

Example #1 A simple fread example

PHP Version:

Example #2 Binary fread example

PHP Version:

Example #3 Remote fread examples

PHP Version: