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
|
Properties summary
protected
integer
|
$indentation
|
4 |
#
The amount of spaces to use for indentation of nested nodes.
The amount of spaces to use for indentation of nested nodes.
|