Jump to content

[SOLVED] Implode question


simonp

Recommended Posts

Hi,

 

Any ideas why this doesn't work:

 

$companyaddress = array($companyaddress);
$companyaddress2 = implode(", ", $companyaddress);

 

$companyaddress is something like:

 

1 Smith Street

Newcastle

STAFFS

ST5 1ED

 

and I need it like this:

 

1 Smith Street, Newcastle, STAFFS, ST5 1ED

 

 

Link to comment
https://forums.phpfreaks.com/topic/70631-solved-implode-question/
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.