Which PHP function is used to read the contents of a file into a string?
- file_get_contents()
- readfile()
- fopen()
- fread()
The file_get_contents() function is used to read the contents of a file into a string in PHP. It's a convenient way to work with file data as a string.
Loading...
Related Quiz
- Using ________ ensures that even if two users have the same password, their hashed values will be different.
- A PHP class can have more than one constructor.
- In PHP, to declare an array, you use the array() function or the [] ______.
- Which of the following are common uses of PHP?
- Which of the following is NOT a recommended practice for secure session management?