/include/spyc/yaml-load.php
PHP | 23 lines | 7 code | 6 blank | 10 comment | 0 complexity | 44484c8274766d3c12af0df97d3dea46 MD5 | raw file
Possible License(s): LGPL-2.1, GPL-2.0, BSD-3-Clause, LGPL-2.0, CC-BY-SA-3.0, AGPL-1.0
- <?php
- #
- # S P Y C
- # a simple php yaml class
- # v0.2(.5)
- #
- # author: [chris wanstrath, chris@ozmm.org]
- # websites: [http://www.yaml.org, http://spyc.sourceforge.net/]
- # license: [MIT License, http://www.opensource.org/licenses/mit-license.php]
- # copyright: (c) 2005-2006 Chris Wanstrath
- #
- include('spyc.php');
- $array = Spyc::YAMLLoad('spyc.yaml');
- echo '<pre><a href="spyc.yaml">spyc.yaml</a> loaded into PHP:<br/>';
- print_r($array);
- echo '</pre>';
- ?>