Jump to content

[SOLVED] Address String Issue


Omzy

Recommended Posts

Here is my current address string:

 

$address=$address1.", ".$address2.", ".$district.", ".$town.", ".$county.", ".$postcode;

 

The problem is sometimes a client does not provide an 'address2' or 'district', in some cases both are not provided in which case the address string has unnecessary comma's in.

 

How can I get around this problem?

Link to comment
https://forums.phpfreaks.com/topic/139078-solved-address-string-issue/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.