public function ConvertTagIDtoString($array) { $s = ''; foreach ($array as $a) { $s .= '{' . $a . '}'; } return $s; }