Update README.md
This commit is contained in:
parent
912b2561d5
commit
a051bb3ac3
1 changed files with 8 additions and 2 deletions
10
README.md
10
README.md
|
@ -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>
|
||||
</code>
|
||||
</pre>
|
Loading…
Reference in a new issue