Guest User

Untitled

a guest
Apr 22nd, 2018
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 2.59 KB | None | 0 0
  1. Index: json-encode.xml
  2. ===================================================================
  3. --- json-encode.xml (revision 320527)
  4. +++ json-encode.xml (working copy)
  5. @@ -5,7 +5,7 @@
  6.    <refname>json_encode</refname>
  7.    <refpurpose>Returns the JSON representation of a value</refpurpose>
  8.   </refnamediv>
  9. -
  10. +
  11.   <refsect1 role="description">
  12.    &reftitle.description;
  13.    <methodsynopsis>
  14. @@ -18,7 +18,7 @@
  15.     <parameter>value</parameter>.
  16.    </para>
  17.   </refsect1>
  18. -
  19. +
  20.   <refsect1 role="parameters">
  21.    &reftitle.parameters;
  22.    <para>
  23. @@ -54,14 +54,14 @@
  24.     </variablelist>
  25.    </para>
  26.   </refsect1>
  27. -
  28. +
  29.   <refsect1 role="returnvalues">
  30.    &reftitle.returnvalues;
  31.    <para>
  32.     Returns a JSON encoded <type>string</type> on success.
  33.    </para>
  34.   </refsect1>
  35. -
  36. +
  37.   <refsect1 role="changelog">
  38.    &reftitle.changelog;
  39.    <para>
  40. @@ -97,14 +97,14 @@
  41.     </informaltable>
  42.    </para>
  43.   </refsect1>
  44. -
  45. +
  46.   <refsect1 role="examples">
  47.    &reftitle.examples;
  48.    <para>
  49.     <example>
  50.      <title>A <function>json_encode</function> example</title>
  51.      <programlisting role="php">
  52. -<![CDATA[
  53. +     <![CDATA[
  54.  <?php
  55.  $arr = array('a' => 1, 'b' => 2, 'c' => 3, 'd' => 4, 'e' => 5);
  56.  
  57. @@ -114,16 +114,16 @@
  58.      </programlisting>
  59.      &example.outputs;
  60.      <screen>
  61. -<![CDATA[
  62. +     <![CDATA[
  63.  {"a":1,"b":2,"c":3,"d":4,"e":5}
  64.  ]]>
  65.      </screen>
  66.     </example>
  67. -
  68. +  
  69.     <example>
  70.      <title>A <function>json_encode</function> example showing all the options in action</title>
  71.      <programlisting role="php">
  72. -<![CDATA[
  73. +     <![CDATA[
  74.  <?php
  75.  $a = array('<foo>',"'bar'",'"baz"','&blong&', "\xc3\xa9");
  76.  
  77. @@ -154,7 +154,7 @@
  78.      </programlisting>
  79.      &example.outputs;
  80.      <screen>
  81. -<![CDATA[
  82. +     <![CDATA[
  83.  Normal: ["<foo>","'bar'","\"baz\"","&blong&","\u00e9"]
  84.  Tags: ["\u003Cfoo\u003E","'bar'","\"baz\"","&blong&","\u00e9"]
  85.  Apos: ["<foo>","\u0027bar\u0027","\"baz\"","&blong&","\u00e9"]
  86. @@ -177,7 +177,7 @@
  87.     <example>
  88.      <title>Sequential versus non-sequential array example</title>
  89.      <programlisting role="php">
  90. -<![CDATA[
  91. +     <![CDATA[
  92.  <?php
  93.  echo "Sequential array".PHP_EOL;
  94.  $sequential = array("foo", "bar", "baz", "blong");
  95. @@ -204,7 +204,7 @@
  96.      </programlisting>
  97.      &example.outputs;
  98.      <screen>
  99. -<![CDATA[
  100. +     <![CDATA[
  101.  Sequential array
  102.  array(4) {
  103.    [0]=>
  104. @@ -246,7 +246,7 @@
  105.     </example>
  106.    </para>
  107.   </refsect1>
  108. -
  109. +
  110.   <refsect1 role="notes">
  111.    &reftitle.notes;
  112.    <note>
  113. @@ -263,7 +263,7 @@
  114.     </para>
  115.    </note>
  116.   </refsect1>
  117. -
  118. +
  119.   <refsect1 role="seealso">
  120.    &reftitle.seealso;
  121.    <para>
Add Comment
Please, Sign In to add comment