You are currently browsingthe website for symfony 1
Visit the Symfony2 website
« Back to API menu
sfYaml class.
Dump YAML from PHP array statically
The dump method, when supplied with an array, will do its best to convert the array into friendly YAML.
Wraps echo to automatically provide a newline
Load YAML into a PHP array statically
The load method, when supplied with a YAML stream (string or file), will do its best to convert YAML in a file into a PHP array.
Usage: $array = sfYAML::Load('config.yml'); print_r($array);
$array = sfYAML::Load('config.yml'); print_r($array);