get file extension using file_get_contents php code example Example: php get file contents <?php file_get_contents("file.txt"); ?>