1. Technology
You can opt-out at any time. Please refer to our privacy policy for contact information.

File_Get_Contents () PHP Function

By

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;
 ?> 
Top Related Searches
  • array
  • lt
  • ©2014 About.com. All rights reserved.