public
|
dump(
mixed $input,
int $inline = 0,
int $indent = 0,
bool $exceptionOnInvalidType = false,
bool $objectSupport = false,
): string
Dumps a PHP value to YAML.
Dumps a PHP value to YAML.
Parameters
| $input |
The PHP value
|
| $inline |
The level where you switch to inline YAML
|
| $indent |
The level of indentation (used internally)
|
| $exceptionOnInvalidType |
True if an exception must be thrown on invalid types (a PHP resource or object), false otherwise
|
| $objectSupport |
True if object support is enabled, false otherwise
|
Returns
The YAML representation of the PHP value
|
#
|