22 lines
390 B
PHP
22 lines
390 B
PHP
<?php
|
|
|
|
#
|
|
# S P Y C
|
|
# a simple php yaml class
|
|
#
|
|
# license: [MIT License, http://www.opensource.org/licenses/mit-license.php]
|
|
#
|
|
|
|
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>';
|
|
|
|
|
|
echo '<pre>YAML Data dumped back:<br/>';
|
|
echo Spyc::YAMLDump($array);
|
|
echo '</pre>';
|