string is : {"4":"50","3":"80"}
i want output like below:
Array ( [4] => 50 [3] => 80 )
please help me.
You can use json_ddecode
myArray = json_decode($myJsonString); myArray = json_decode('{"4":"50","3":"80"}');