PHP Classes

File: vendor/wp-cli/mustangostang-spyc/examples/yaml-load.php

Recommend this page to a friend!
  Classes of Adeleye Ayodeji   Nolimitbuzz WP Theme   vendor/wp-cli/mustangostang-spyc/examples/yaml-load.php   Download  
File: vendor/wp-cli/mustangostang-spyc/examples/yaml-load.php
Role: Auxiliary script
Content type: text/plain
Description: Configuration script
Class: Nolimitbuzz WP Theme
WordPress theme to used as start of new themes
Author: By
Last change:
Date: 19 days ago
Size: 390 bytes
 

Contents

Class file image Download
<?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>';