Hello,
I have an array that returns city and state in this format: Detroit,MI
I want it to be shown as Michigan/Detroit
is there any way of doing this?
Here is my foreach code:
foreach ($i['popularCities'] as $a => $value)
{
echo '<li>' . $value . '</li>' . PHP_EOL;
}
Thanks