Array or Json to String : <p>change the string to array is</p>

<pre class="lang-php prettyprint-override"><code>$string = '[{"name":"jack","address":"who knows"},{"name":"jill","address":"who knows too"}]';

$array = json_decode($array,true);
</code></pre>

<p>but what if it's reversed change array to string</p>

<pre class="lang-php prettyprint-override"><code>$array = [{"name":"jack","address":"who knows"},{"name":"jill","address":"who knows too"}];

$string = $array; // $string is $string like on first example
</code></pre>
