i have two foreach operations like below.
$sql = "select region_name from ".$GLOBALS['ecs']->table('region') . " where region_id in(".$order['province'].",". $order['city'].",".$order['district'].")";
$address = $GLOBALS['db']->getAll($sql);
foreach($address as $vo){
$region .= $vo['region_name'];
}
$order['1address'] = $region.$order['1address'];
return $order;
}
Here's a sample of the output data:
AlabamaColorado
How i want it to be
Alabama Colorado
The only thing wrong is I could not separate Alabama and Colorado with blank space. It might be an easy operation but how? Any idea?
Thanks a lot.