This is an example of using file_put_contents() to create a file containing a single string. Useful for simple data structures. Newly submitted data will replace any existing data in the text file. Commonly used with file_get_contents() for displaying and parsing simple strings. Not useful when working with complex data structures.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
kaexylqkae, kaexylqkae