PHP Array Json encode
<p>With this code:</p>

<pre><code>$array = array(
    "value" =&gt; 1,
    "secondvalue" =&gt; 2);

echo json_encode($array);
</code></pre>

<p>It prints: </p>

<blockquote>
  <p>{"value":1,"secondvalue":2}</p>
</blockquote>

<p>But I wan't:</p>

<blockquote>
  <p>["value", 1], ["secondvalue", 3]</p>
</blockquote>

<p>I've tried json_encode($array, JSON_HEX_TAG); but same. Thanks in advance ;)</p>