package_put_contents
Description
The complement to package_get_contents. Puts the specified contents in the specified file.
Syntax
int package_put_contents (string $filename, string $data[, bool $testing])
Parameter $filename
Expected type: String
Description: The file to put the specified contents in
Parameter $data
Expected type: String
Description: The contents to put in the specified file
Parameter $testing
Expected type: Boolean
Description: If true, the changes won't be saved. Default is true.
Return value
Expected type: Integer
Description: The number of bytes written to the file
Notes
- Tries to use the package cache if available
- Testing indicates that the changes to the file shouldn't be saved