get data from api using file get content in php code example Example: php get file contents <?php file_get_contents("file.txt"); ?>