You are currently viewing the 1.0 branch api documentation. Switch to 1.1

1.0 Doctrine_Parser_YamlSf

Doctrine Parser YamlSf

YamlSf class.

Method Summary

Returns Name Description
string dump The dump method, when supplied with an array, will do its best to convert the array into friendly YAML.
array load 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:


   

Method Details

  • $array PHP array

    (string) dump($array, $inline = 4)

    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.


  • $input Path of YAML file or string containing YAML

    (array) load($input)

    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:

    
    
    print_r($array);]]>