Could really do with some help. So I've got the 2 arrays like so
Array
(
[0] => UK
[1] => UK
[2] => USA
[3] => USA
[4] => USA
[5] => France
)
Array
(
[0] => London
[1] => Manchester
[21] => New York
[22] => Florida
[23] => Hawaii
[24] => Paris
)
And I need to insert it into mysql database like so
Country City
UK London, Manchester
USA New York, Florida, Hawaii
France Paris
I'm okay with PHP but I'm really stuck with this one. Don't have any code to show as I've absolutely got no idea how to accomplish this. Can someone help me achieve this please. Thanks in advance for the help.
foreach()
. – CodeCaster May 11 '12 at 8:20