PHP - file_get_contents example

Example 1
    
        $content = file_get_contents('http://www.google.com/');
        echo $content;
        // output
        // content of url
    
Example 2
    
        $content = file_get_contents('/path/to/file.txt');
        echo $content;
        // output
        // content of file