Class Dumper
Dumper dumps PHP variables to YAML strings.
Methods summary
public
|
#
setIndentation( integer $num )
Sets the indentation.
Parameters
- $num
integer - $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
mixed - $input The PHP value
- $inline
integer - $inline The level where you switch to inline YAML
- $indent
integer - $indent The level of indentation (used internally)
- $exceptionOnInvalidType
boolean - $exceptionOnInvalidType true if an exception must be thrown on invalid types (a
PHP resource or object), false otherwise
- $objectSupport
boolean - $objectSupport true if object support is enabled, false otherwise
Returns
string - The YAML representation of the PHP value
|
Magic methods summary
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.
|