Format a static PHP array to be written to a file.
More...
|
| create (array $data, $header='Automatically generated') |
|
|
| encode ( $key, $value, $indent) |
| Recursively turn one k/v pair into properly-indented PHP.
|
|
Format a static PHP array to be written to a file.
- Since
- 1.32
Definition at line 26 of file StaticArrayWriter.php.
◆ create()
Wikimedia\StaticArrayWriter::create |
( |
array |
$data, |
|
|
|
$header = 'Automatically generated' |
|
) |
| |
◆ encode()
Wikimedia\StaticArrayWriter::encode |
( |
|
$key, |
|
|
|
$value, |
|
|
|
$indent |
|
) |
| |
|
private |
Recursively turn one k/v pair into properly-indented PHP.
- Parameters
-
string | int | $key | |
array | mixed | $value | |
int | $indent | Indentation level |
- Returns
- string
Definition at line 54 of file StaticArrayWriter.php.
References $line, $value, and as.
The documentation for this class was generated from the following file: