Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Index: json-encode.xml
- ===================================================================
- --- json-encode.xml (revision 320527)
- +++ json-encode.xml (working copy)
- @@ -5,7 +5,7 @@
- <refname>json_encode</refname>
- <refpurpose>Returns the JSON representation of a value</refpurpose>
- </refnamediv>
- -
- +
- <refsect1 role="description">
- &reftitle.description;
- <methodsynopsis>
- @@ -18,7 +18,7 @@
- <parameter>value</parameter>.
- </para>
- </refsect1>
- -
- +
- <refsect1 role="parameters">
- &reftitle.parameters;
- <para>
- @@ -54,14 +54,14 @@
- </variablelist>
- </para>
- </refsect1>
- -
- +
- <refsect1 role="returnvalues">
- &reftitle.returnvalues;
- <para>
- Returns a JSON encoded <type>string</type> on success.
- </para>
- </refsect1>
- -
- +
- <refsect1 role="changelog">
- &reftitle.changelog;
- <para>
- @@ -97,14 +97,14 @@
- </informaltable>
- </para>
- </refsect1>
- -
- +
- <refsect1 role="examples">
- &reftitle.examples;
- <para>
- <example>
- <title>A <function>json_encode</function> example</title>
- <programlisting role="php">
- -<![CDATA[
- + <![CDATA[
- <?php
- $arr = array('a' => 1, 'b' => 2, 'c' => 3, 'd' => 4, 'e' => 5);
- @@ -114,16 +114,16 @@
- </programlisting>
- &example.outputs;
- <screen>
- -<![CDATA[
- + <![CDATA[
- {"a":1,"b":2,"c":3,"d":4,"e":5}
- ]]>
- </screen>
- </example>
- -
- +
- <example>
- <title>A <function>json_encode</function> example showing all the options in action</title>
- <programlisting role="php">
- -<![CDATA[
- + <![CDATA[
- <?php
- $a = array('<foo>',"'bar'",'"baz"','&blong&', "\xc3\xa9");
- @@ -154,7 +154,7 @@
- </programlisting>
- &example.outputs;
- <screen>
- -<![CDATA[
- + <![CDATA[
- Normal: ["<foo>","'bar'","\"baz\"","&blong&","\u00e9"]
- Tags: ["\u003Cfoo\u003E","'bar'","\"baz\"","&blong&","\u00e9"]
- Apos: ["<foo>","\u0027bar\u0027","\"baz\"","&blong&","\u00e9"]
- @@ -177,7 +177,7 @@
- <example>
- <title>Sequential versus non-sequential array example</title>
- <programlisting role="php">
- -<![CDATA[
- + <![CDATA[
- <?php
- echo "Sequential array".PHP_EOL;
- $sequential = array("foo", "bar", "baz", "blong");
- @@ -204,7 +204,7 @@
- </programlisting>
- &example.outputs;
- <screen>
- -<![CDATA[
- + <![CDATA[
- Sequential array
- array(4) {
- [0]=>
- @@ -246,7 +246,7 @@
- </example>
- </para>
- </refsect1>
- -
- +
- <refsect1 role="notes">
- &reftitle.notes;
- <note>
- @@ -263,7 +263,7 @@
- </para>
- </note>
- </refsect1>
- -
- +
- <refsect1 role="seealso">
- &reftitle.seealso;
- <para>
Add Comment
Please, Sign In to add comment