how to read the contents of a file in PHP code example Example: php get file contents <?php file_get_contents("file.txt"); ?>