title: PHP - modify formatted array
body: <p>I have a function for arrays that I insert in db.</p>
  
  <pre><code>$data = array(
   "This\tIs\tAn\tExample\tOne\tOf\tMy\tArrays\"
  );
  </code></pre>
  
  <p>I formatted it correctly and given output is with:</p>
  
  <pre><code>$result = array_walk($data, function(&amp;$item) { $item = '{ ' .str_replace("\t", ', ', $item) . ' }'; });
  </code></pre>
  
  <p>and the result of one of the rows that is inserted in db in JSON format is:</p>
  
  <pre><code>{ This, is, Example }, {  One, Of, My, Arrays}
  </code></pre>
  
  <p>and all of them are formatted that way.</p>
  
  <p>How can I bypass this to get desired format like:</p>
  
  <pre><code>{ This, is, Example, One, Of, My, Arrays}
  </code></pre>