Function __global->write_text_file
Definitions
sources/textfiles.php
- Write a text file, using the _custom system.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $codename | string | No | No | required parameter | N/A | N/A | The file name (without .txt) |
| $lang | ?LANGUAGE_NAME | No | No | required parameter | N/A | N/A | The language to write for (null: none) (blank: search) |
| $out | string | No | No | required parameter | N/A | N/A | The data to write |
Preview
Code (PHP)
/**
* Write a text file, using the _custom system.
*
* @param string $codename The file name (without .txt)
* @param ?LANGUAGE_NAME $lang The language to write for (null: none) (blank: search)
* @param string $out The data to write
*/
function write_text_file(string $codename, ?string $lang, string $out)
* Write a text file, using the _custom system.
*
* @param string $codename The file name (without .txt)
* @param ?LANGUAGE_NAME $lang The language to write for (null: none) (blank: search)
* @param string $out The data to write
*/
function write_text_file(string $codename, ?string $lang, string $out)

