score:1

Accepted answer

Just request the PHP script from D3 like it is a JSON file. Then in your PHP script...

$data = array('your', 'data', 'here');

header('Content-Type: application/json');

echo json_encode($data);

exit();

Related Query

More Query from same tag