Symfony\Component\Yaml\Dumper::dump
Dumps a PHP value to YAML.
Signature
public function dump(mixed
$input,
[integer
$inline = 0,
[integer
$indent = 0,
[Boolean
$exceptionOnInvalidType = false,
[Boolean
$objectSupport = false]]]] )
Parameters
$input
—
mixed
- The PHP value
$inline
—
integer
- The level where you switch to inline YAML
$indent
—
integer
- The level of indentation (used internally)
$exceptionOnInvalidType
—
object
- true if an exception must be thrown on invalid types (a PHP resource or object), false otherwise
$objectSupport
—
object
- true if object support is enabled, false otherwise
Returns
- string
- The YAML representation of the PHP value