0
$j={"a":"one","b":"two"} I want to convert this json into an associative array in php. i.e array("a"=>"one","b"=>"two");
converting json to associative array in php
1 Resposta
0
You can use json_decode() function: http://php.net/json-decode
Also, I recommend you to use the following package to manage your JSON files (it has a complete documentation):
https://github.com/MAChitgarha/JSON