how can i implode multi dimentional array
<p>I am retrieving an array values from database which save multi dimensional array..i want to add</p>

<p><em><strong>|</em></strong> </p>

<p>between two member values of array..i have tried basic implode function which mention in the end what i tried..</p>

<p>i have loop mention below</p>

<pre><code>$sql = "SELECT `categories` FROM `jos_js_res_record` WHERE `categories` LIKE '%Autumn Market Session%' OR `categories` LIKE '%Farmer Market Profiles%' OR `categories` LIKE '%Spring Market Session%' OR `categories` LIKE '%Summer Market Session%' OR `categories` LIKE '%Winter Market Session%' ORDER BY `user_id`";

$db-&gt;setQuery( $sql );

$unserial = $db-&gt;loadObjectList();

foreach ($unserial as $dataElement) {
  $categories = unserialize($dataElement-&gt;categories);

if (is_array($categories)) {

foreach ($categories as $unserKey =&gt; $unserailData) { 

print $unserailData;
    }

}

echo '&lt;br /&gt;';

}
</code></pre>

<p><strong>i have tried the below line of code in 2nd for each loop but that shows error</strong></p>

<pre><code>$comma_separated = implode(",", $unserailData);
</code></pre>

<p>Kindly guide me how can i implode the values in 2nd array <strong>$unserailData</strong> ?</p>

<p><strong>data in $unserailData look like below</strong></p>

<blockquote>
  <p>Summer Market Session</p>
  
  <p>Summer Market Session</p>
  
  <p>Summer Market SessionAutumn Market Session</p>
  
  <p>Summer Market SessionAutumn Market Session</p>
</blockquote>
