cvs: phpdoc /en/reference/json/functions json-decode.xml

From: Date: Wed, 23 Jan 2008 22:05:59 +0000
Subject: cvs: phpdoc /en/reference/json/functions json-decode.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-1064@lists.php.net to get a copy of this message
felipe Wed Jan 23 22:05:59 2008 UTC Modified files: /phpdoc/en/reference/json/functions json-decode.xml Log: Add new example http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/json/functions/json-decode.xml?r1=1.3&r2=1.4&diff_format=u Index: phpdoc/en/reference/json/functions/json-decode.xml diff -u phpdoc/en/reference/json/functions/json-decode.xml:1.3 phpdoc/en/reference/json/functions/json-decode.xml:1.4 --- phpdoc/en/reference/json/functions/json-decode.xml:1.3 Wed Jun 20 22:24:48 2007 +++ phpdoc/en/reference/json/functions/json-decode.xml Wed Jan 23 22:05:59 2008 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.3 $ --> +<!-- $Revision: 1.4 $ --> <refentry xml:id="function.json-decode" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>json_decode</refname> @@ -89,6 +89,20 @@ ]]> </screen> </example> + <example> + <programlisting role="php"> +<![CDATA[ +<?php + +$json = '{"foo-bar": 12345}'; + +$obj = json_decode($json); +print $obj->{'foo-bar'}; // 12345 + +?> +]]> + </programlisting> + </example> </para> </refsect1>

« previous php.doc.cvs (#1064) next »