PHP » Rust |
login |
register |
about
|
GoLang file_put_contents
request it (138)
GoLang replacement for PHP's file_put_contents
[edit | history]
file_put_contents(PHP 5, PHP 7) file_put_contents — Write a string to a file DescriptionThis function is identical to calling fopen(), fwrite() and fclose() successively to write data to a file.
If Parameters
Return Values
This function returns the number of bytes that were written to the file, or
Warning
This function may
return Boolean Examples
Example #1 Simple usage example
<?phpExample #2 Using flags
<?phpChangelog
Notes
Tip
A URL can be used as a filename with this function if the fopen wrappers have been enabled. See fopen() for more details on how to specify the filename. See the Supported Protocols and Wrappers for links to information about what abilities the various wrappers have, notes on their usage, and information on any predefined variables they may provide. See Also
|
more
Most requested
more
Last requests
|