file_get_contents Reads entire file into a string Description stringfile_get_contents stringfilename booluse_include_path resourcecontext intoffset Identical to file, except that file_get_contents returns the file in a string, starting at the specified offset. On failure, file_get_contents will return &false;. file_get_contents is the preferred way to read the contents of a file into a string. It will use memory mapping techniques if supported by your OS to enhance performance. The offset parameter was added in PHP 5.1.0. Using <function>file_get_contents</function> with a URI If you're opening a URI with special characters, such as spaces, you need to encode the URI with urlencode. ]]> ¬e.bin-safe; &tip.fopen-wrapper; ¬e.context-support; &warn.ssl-non-standard; See also fgets, file, fread, include, and readfile.