Hi
I need help to finish my script
I can print the content from json in array
and now I want outpout the content name/phone/city into csv file
my code :
$json = file_get_contents("test.json")
$parsed_json = json_decode($json);
foreach($parsed_json->records as $p)
{
echo $p->fields->name."<br />";
echo $p->fields->phone."<br />";
echo $p->fields->city."<br />";
}
thanks for your help