header('Content-Type: application/json; charset=utf-8'); echo json_encode($response); // the response is sent back to the browser