Esempio 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>
  *
  * @param [string] $input Path of YAML file or string containing YAML
  * @return [array] $array
  */
 public static function yamlLoad($input)
 {
     $spyc = new Spyc();
     $array = $spyc->_load($input);
     return $array;
 }