You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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>';
|