__load() private method

LOADING FUNCTIONS
private __load ( $input )
示例#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
  */
 public static function YAMLLoad($input)
 {
     $Spyc = new Spyc();
     return $Spyc->__load($input);
 }
示例#2
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 YAMLLoad($input) {
   $Spyc = new Spyc;
   return $Spyc->__load($input);
 }