source: branches/testa-single-bookmark/php/spyc-0.5/examples/yaml-load.php @ 40

Last change on this file since 40 was 23, checked in by anonymous, 6 years ago

init

  • Property svn:executable set to *
File size: 390 bytes
Line 
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
10include('../spyc.php');
11
12$array = Spyc::YAMLLoad('../spyc.yaml');
13
14echo '<pre><a href="spyc.yaml">spyc.yaml</a> loaded into PHP:<br/>';
15print_r($array);
16echo '</pre>';
17
18
19echo '<pre>YAML Data dumped back:<br/>';
20echo Spyc::YAMLDump($array);
21echo '</pre>';
Note: See TracBrowser for help on using the repository browser.