Lines Matching full:spyc
3 * Spyc -- A Simple PHP YAML Class
7 * @link http://code.google.com/p/spyc/
10 * @package Spyc
20 return Spyc::YAMLLoadString($string);
31 return Spyc::YAMLLoad($file);
44 * $Spyc = new Spyc;
45 * $array = $Spyc->load($file);
49 * $array = Spyc::YAMLLoad($file);
55 * @package Spyc
57 class Spyc { class
104 * Load a valid YAML string to Spyc.
113 * Load a valid YAML file to Spyc.
129 * $array = Spyc::YAMLLoad('lucky.yaml');
137 $Spyc = new Spyc;
138 return $Spyc->__load($input);
153 * $array = Spyc::YAMLLoadString("---\n0: hello world\n");
161 $Spyc = new Spyc;
162 return $Spyc->__loadString($input);
186 $spyc = new Spyc;
187 return $spyc->dump($array,$indent,$wordwrap);
1011 // Enable use of Spyc from command line
1012 // The syntax is the following: php spyc.php spyc.yaml
1019 if (empty ($_SERVER['PHP_SELF']) || $_SERVER['PHP_SELF'] != 'spyc.php') break;
1021 printf ("Spyc loading file: %s\n", $file);