1. Computing & Technology

Discuss in my forum

File_Get_Contents () PHP Function

By , About.com Guide

Definition: File_Get_Contents () works the same as file () except it returns a string instead of an array. This function retrieves data from an external file and then puts it into a string for use.
Examples:
 <?php 
 $file = file_get_contents ('YourFile.txt'); 
 Echo $file;
 ?> 
Related Searches array lt

©2012 About.com. All rights reserved.

A part of The New York Times Company.