class sfYamlDumper (View source)

sfYamlDumper dumps PHP variables to YAML strings.

Methods

string
dump(mixed $input, integer $inline = 0, integer $indent = 0)

Dumps a PHP value to YAML.

Details

string dump(mixed $input, integer $inline = 0, integer $indent = 0)

Dumps a PHP value to YAML.

Parameters

mixed $input The PHP value
integer $inline The level where you switch to inline YAML
integer $indent The level o indentation indentation (used internally)

Return Value

string The YAML representation of the PHP value