Unlimited Plugins, WordPress themes, videos & courses! Unlimited asset downloads! From $16.50/m

3.6 File Reading Shortcuts

Just as there are shortcut functions for writing data to files, there are also shortcut functions for reading data from files. In this lesson, we will discuss two of these functions. One will read the entire contents of the file and give you back a single string. The other function will read the file and give you the contents back in an array. Which one you use is up to you.