getlayerbyname($codigo); $mapext = $layer->getmetadata("extensao"); if($mapext != ""){ $mapext = str_replace(" ",",",$mapext); } ?>