Dumper dumps PHP variables to YAML strings.
- Auteur
- Fabien Potencier fabie.nosp@m.n@sy.nosp@m.mfony.nosp@m..com
◆ dump()
dump |
( |
|
$input, |
|
|
|
$inline = 0 , |
|
|
|
$indent = 0 , |
|
|
|
$exceptionOnInvalidType = false , |
|
|
|
$objectSupport = false |
|
) |
| |
Dumps a PHP value to YAML.
- Paramètres
-
mixed | $input | The PHP value |
int | $inline | The level where you switch to inline YAML |
int | $indent | The level of indentation (used internally) |
bool | $exceptionOnInvalidType | True if an exception must be thrown on invalid types (a PHP resource or object), false otherwise |
bool | $objectSupport | True if object support is enabled, false otherwise |
- Renvoie
- string The YAML representation of the PHP value
◆ setIndentation()
Sets the indentation.
- Paramètres
-
int | $num | The amount of spaces to use for indentation of nested nodes |
◆ $indentation
La documentation de cette classe a été générée à partir du fichier suivant :
- XoopsCore25-2.5.11-Beta1/htdocs/class/libraries/vendor/symfony/yaml/Dumper.php