InterviewSolution
| 1. |
How To Read The Entire File Into A Single String? |
|
Answer» If you have a file, and you want to read the entire file into a single string, you can use the file_get_contents() function. It OPENS the SPECIFIED file, reads all characters in the file, and RETURNS them in a single string. Here is a PHP script example on how to file_get_contents(): If you have a file, and you want to read the entire file into a single string, you can use the file_get_contents() function. It opens the specified file, reads all characters in the file, and returns them in a single string. Here is a PHP script example on how to file_get_contents(): |
|