-
FAQ
- Forum Search
- Community
- Online Manual
- Support Helpers of the Month
- Function Database
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
Advertisement:- Help | Terms and Rules | Go Up ▲
- Copyright © 2022 Simple Machines. All Rights Reserved.
- Page created in 0.016 seconds with 13 queries.
- Forum Search