0 ? "$day. ":"").($month != null ? $month : "")." $year"); } else { $month = $myrow["bmonth_num"]; add( ($day > 0 ? "$day.":"").($month != null ? "$month." : "")."$year"); } # Home contact if($zip_pattern != "") { $address = ""; $zip = ""; $city = ""; preg_match( "/(.*)(\b".$zip_pattern."\b)(.*)/m" , str_replace("\r", "", str_replace("\n", ", ", trim($myrow["address"]))), $matches); if(count($matches) > 1) $address = preg_replace("/,$/", "", trim($matches[1])); if(count($matches) > 2) $zip = $matches[2]; if(count($matches) > 3) $city = preg_replace("/^,/", "", trim($matches[3])); add($address); add($zip); add($city); } else add($myrow["address"]); # Privat contact add($myrow["home"]); add($myrow["mobile"]); add($myrow["email"]); # Work contact add($myrow["work"]); add($myrow["fax"]); add($myrow["email2"]); # 2nd contact add($myrow["address2"]); add($myrow["phone2"]); if($use_utf_16LE) print mb_convert_encoding( "\n", 'UTF-16LE', 'UTF-8'); else echo "\r\n"; } ?>