diff options
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -8,7 +8,8 @@ License: GPLv2 Example of correct NYAML file (test.nyaml): ------ -node 1: +node 1 +<pre> <code> #this is node 1 value 1 @@ -20,16 +21,20 @@ node 1: key1: [elements, [of,array]] key2: "[this, is, not, array]" </code> +</pre> test.php: ------ +<pre> <code> <?php include("nyaml.php"); $nyaml = new nyaml(); print_r($nyaml->file("test.nyaml")); </code> +</pre> Result: ------ +<pre> <code> Array ( @@ -57,4 +62,5 @@ Array ) ) ) -</code>
\ No newline at end of file +</code> +</pre>
\ No newline at end of file |