Hi I have this array coming in:
$myRegionData =
array (
[0] => stdClass Object
(
[howmuch] => 1
[country] => ID
[state] => JAWA BARAT
)
[1] => stdClass Object
(
[howmuch] => 1
[country] => RO
[state] => BUCURESTI
)
[2] => stdClass Object
(
[howmuch] => 2
[country] => US
[state] => CALIFORNIA
)
[3] => stdClass Object
(
[howmuch] => 1
[country] => US
[state] => TEXAS
)
)
Im trying to group the array outuput as such
ID
JAWA BARAT (1)
RO
BUCURESTI (1)
US
CALIFORNIA (2)
TEXAS (1)
I have tried Key value associations, i Loops etc.. and I can seem to combine the US states in the display.
Any advice would be greatly appreciated