Exemplo n.º 1
0
 /**
  * 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.  Pretty
  * simple.
  *  Usage:
  *  <code>
  *   $array = Spyc::YAMLLoad('lucky.yaml');
  *   print_r($array);
  *  </code>
  * @access public
  * @return array
  * @param string $input Path of YAML file or string containing YAML
  */
 function load_yml($input)
 {
     // /!\ Le cambie el nombre por 'load_yml'
     $spyc = new yml();
     return $spyc->load($input);
 }