0
Points
Questions
0
Answers
1
-
Asked on March 26, 2021 in Meaning.
When you need data, it seems better to use file contents.
For example, PHP has two corresponding functions, named file_get_contentsand file_put_contents. They are logical logical functions, but you can call their functions any way you want, as well. For example, the file_put_contents function can be implemented as a method..
Additional, note that
file_get_contents()
acceptsoffset
andmaxlen
parameters. This tends to treat the file contents as a “sequence of bytes”.If a
file
has, file_get_contents()will return that file which had the requested format, up to a value of maxlen bytes.
Taken from file_get_contents() documentation : file_get_contents() returns the file in a string, starting at the specified offset up to maxlen bytes.
- 765969 views
- 2 answers
- 284598 votes