I need to merge some key values in an array into a new key => value but in the same array and I couldn't figure out how.
so I have this array :
array(
[title] => something
[status] => something
[url_1] => http://someurl.com
[url_2] => http://someurl.com
[url_3] => http://someurl.com
[url_4] => http://someurl.com
)
and I need an array like this:
array(
[title] => something
[status] => something
[all_url] => http://someurl.com,http://someurl.com,http://someurl.com,http://someurl.com
)
oh and if url_2, url_3, url_4 is empty than do not put the separators after url_1 and of course if url_1 is empty do not put the separator before url_2
foreach+if?