PHP/file/io: Difference between revisions
from HTYP, the free directory anyone can edit if they can prove to me that they're not a spambot
No edit summary |
No edit summary |
||
| Line 16: | Line 16: | ||
*** <code>[https://www.php.net/manual/en/function.fwrite fwrite()]</code>: binary-safe write | *** <code>[https://www.php.net/manual/en/function.fwrite fwrite()]</code>: binary-safe write | ||
* [https://www.php.net/manual/en/refs.fileprocess.file.php File System Related Extensions]: also includes {{l/same|filesystem}}-related extensions | * [https://www.php.net/manual/en/refs.fileprocess.file.php File System Related Extensions]: also includes {{l/same|filesystem}}-related extensions | ||
==Related== | |||
* [https://www.php.net/manual/en/intro.stream.php streams] | |||
Latest revision as of 22:56, 3 January 2026
Template:Box/navThis is a quick index to information about accessing files in PHP.
Functions
- Filesystem Functions
file(): read entire text file into an array (by line)file_get_contents(): read entire text file into a stringfile_put_contents()- file-handle functions:
- File System Related Extensions: also includes Template:L/same-related extensions
