How the function file_get_contents() work?

file_get_contents()Reads the file into a string

Team Leader Asked on February 11, 2017 in PHP.
Add Comment
1 Answer(s)

file_get_contents() — Reads entire file into a string.


<?php

$data = file_get_contents('http://www.example.com/');

echo $data;

?>

Team Leader Answered on March 19, 2017.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.