If anyone can help, thanks.
I have an array @country
This array can hold anything from one to four values. i.e.
United Kingdom
Scotland
Wales
Ireland
I am trying to print all the values in the array and have them seperated by ~~ so it would print like this
United Kingdom~~Scotland~~Wales~~Ireland
or
United Kingdom~~Scotland
or just
United Kingdom
depending on whats in the array.
I`ve tried lots of methods, I can get all the values with
$countries = "@country";
but the values are seperated by spaces, I could then regex the $countries but that would also replace the space in United Kingdom which I do not want to do.
Any ideas much appreciated, thanks.
chmod
I have an array @country
This array can hold anything from one to four values. i.e.
United Kingdom
Scotland
Wales
Ireland
I am trying to print all the values in the array and have them seperated by ~~ so it would print like this
United Kingdom~~Scotland~~Wales~~Ireland
or
United Kingdom~~Scotland
or just
United Kingdom
depending on whats in the array.
I`ve tried lots of methods, I can get all the values with
$countries = "@country";
but the values are seperated by spaces, I could then regex the $countries but that would also replace the space in United Kingdom which I do not want to do.
Any ideas much appreciated, thanks.
chmod