scratch – Blame information for rev 66
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
66 | office | 1 | <?php |
2 | |||
3 | # |
||
4 | # S P Y C |
||
5 | # a simple php yaml class |
||
6 | # |
||
7 | # license: [MIT License, http://www.opensource.org/licenses/mit-license.php] |
||
8 | # |
||
9 | |||
10 | include('../Spyc.php'); |
||
11 | |||
12 | $array = Spyc::YAMLLoad('../spyc.yaml'); |
||
13 | |||
14 | echo '<pre><a href="spyc.yaml">spyc.yaml</a> loaded into PHP:<br/>'; |
||
15 | print_r($array); |
||
16 | echo '</pre>'; |
||
17 | |||
18 | |||
19 | echo '<pre>YAML Data dumped back:<br/>'; |
||
20 | echo Spyc::YAMLDump($array); |
||
21 | echo '</pre>'; |