Class Dumper
Dumper dumps PHP variables to YAML strings.
Methods summary
public
|
#
setIndentation( integer $num )
Sets the indentation.
Parameters
- $num
- The amount of spaces to use for indentation of nested nodes.
|
public
string
|
#
dump( mixed $input, integer $inline = 0, integer $indent = 0, boolean $exceptionOnInvalidType = false, boolean $objectSupport = false )
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
string The YAML representation of the PHP value
|
Properties summary
protected
integer
|
$indentation
The amount of spaces to use for indentation of nested nodes.
The amount of spaces to use for indentation of nested nodes.
|
|