How to echo an array in PHP
<p>How can I in an API echo results in a new array?</p>

<p>example: </p>

<pre><code> echo implode('[]',$resultArray);
</code></pre>

<p>result: </p>

<blockquote>
  <p>$resultArray</p>
</blockquote>

<p>requested result: </p>

<blockquote>
  <p>[$resultArray]</p>
</blockquote>