Reading Files
PHP provides several functions to read files.
Common functions include:
fgets()fread()file_get_contents()
Example
Section titled “Example”$file = fopen("example.txt", "r");
while (!feof($file)) { echo fgets($file);}
fclose($file);