As I can see, you have 2 options:
1 - find how each country displays its addresses and creates a template for each
$address1='23 main st'; $city='New York'; $state='NY'; $postalcode='10000'; $country='US'; include("address_format_" . $formats[$country] . ".php");
Formats
would display the country in a format, allowing several countries to have the same format.
2 - display of all addresses in a common way:
<address> <?php if($address1): ?>Address: <?php echo $address1 ?><br><?php endif; ?> <?php if($city): ?>City: <?php echo $city ?><br><?php endif; ?> <?php if($state): ?>State: <?php echo $state ?><br><?php endif; ?> <?php if($postalcode): ?>Postal Code: <?php echo $postalcode ?><br><?php endif; ?> </address>
Galen
source share