Function Commandr_fs->append_file
Definitions
sources/commandr_fs.php
- Append to a file.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: bool
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $to_append | array | No | No | required parameter | N/A | N/A | The file to which to append |
| $contents | string | No | No | required parameter | N/A | N/A | The contents to append |
Returns
- Success?
- Type: boolean
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Append to a file.
*
* @param array $to_append The file to which to append
* @param string $contents The contents to append
* @return boolean Success?
*/
public function append_file(array $to_append, string $contents) : bool
* Append to a file.
*
* @param array $to_append The file to which to append
* @param string $contents The contents to append
* @return boolean Success?
*/
public function append_file(array $to_append, string $contents) : bool
