diff options
author | Alexander Kiryukhin <frei@neonxp.info> | 2012-02-12 05:54:40 +0400 |
---|---|---|
committer | Alexander Kiryukhin <frei@neonxp.info> | 2012-02-12 05:54:40 +0400 |
commit | a051bb3ac314ed9089b453435616c5ad367cfd22 (patch) | |
tree | 1a852c57521af4f9462945ad0de652ecd0ccb98e | |
parent | 912b2561d57ad2788ad572a513d91b475920f5e1 (diff) |
Update 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 |