All exams are online now due to COVID related precautions | Download the app or write to us at info@vskills.in

Certified PHP Developer Learning Resources Reading from a file

Reading from a file
 


Read a File
copy$my_file = 'file.txt';
$handle = fopen($my_file, 'r');
$data = fread($handle,filesize($my_file));