/** * 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> * * @return array * * @param string $input Path of YAML file or string containing YAML */ public static function YAMLLoad($input) { $Spyc = new self(); return $Spyc->__load($input); }