not showing the whole values of given column by using implode not showing the whole values of given column by using implode json json

not showing the whole values of given column by using implode


$res = json_decode($str,true);           /*echo "<pre>";           print_r($res);           echo "</pre>";*/           $res = $res['likes']['data'];           for ($i=0; $i < count($res); $i++){                echo $res[$i]['category'] . " | " . $res[$i]['name'] . " | " . $res[$i]['created_time'] . " | " . $res[$i]['id'] ;                if (array_key_exists("category_list",$res[$i])) {                    $cl = $res[$i]['category_list'];                    echo " | ";                    foreach($cl as $icl) {                        echo $icl['name'].",";                    }                }                echo "<hr />";

}