Ver original$datos_cat = unserialize($res["category"]); if($datos_cat<>"") { foreach($datos_cat as $index){ echo $index; } }