title: How to Join two arrays using a delimiter in PHP?
body: <p>My graph is not getting generated properly with Chartist graph library
  It wants data generated as 
       series: [   [2,4,5,5,6], [6,4,8,7]   ]
  I tried to do it with this </p>
  
  <pre><code> &lt;?php echo "[". $comma_separated."],[". $comma_separated1."]"?&gt;
  </code></pre>
  
  <p>$comma_separated = [2,4,5,5,6] 
  $comma_separated1 = [6,4,8,7]</p>
  
  <p>and I want $result = [ [2,4,5,5,6] , [6,4,8,7] ]</p>
  
  <p>but only first array gets displayed in graph not second one ie $comma_separated1.
  Static entry of these things is generating it properly. </p>
  
  <p>Is there any way that I can join these two strings into a single one with a    "],["    between them and not between the contents in array.</p>