I have string as
SportId : 56,GroundType : Public,SelectArea : 10,Cost : 3000-4000 ,Size : 7 * 7
when explode this array output is
Array
(
[0] => SportId : 56
[1] => GroundType : Public
[2] => SelectArea : 10
[3] => Cost : 3000-4000
[4] => Size : 7 * 7
)
I want output in associative array as
Array
(
['SportId'] => 56
['GroundType'] => Public
['SelectArea'] => 10
['Cost'] => 3000-4000
['Size'] => 7 * 7
)