Home / Questions / Other PHP JSON API response कैसे भेज सकते हैं? इसका working code example क्या है? Other 0 Views Verified PHP JSON API response कैसे भेज सकते हैं? इसका working code example क्या है? सही विकल्प चुनें और code/solution को समझें। #php #core php #php programming #php tutorial #php error #php solution #backend #developer Sarkari Result QA Bank Editorially reviewed exam information Share
Verified response.json($data); response.json($data); Additional Explanation यह विकल्प सही Core PHP solution नहीं है।
Verified Correct Answer header('Content-Type: application/json'); echo json_encode($data); header('Content-Type: application/json'); echo json_encode($data); Additional Explanation JSON API में appropriate header और json_encode common pattern है।
Verified echo json($data); echo json($data); Additional Explanation यह विकल्प सही Core PHP solution नहीं है।
Verified print JSON($data); print JSON($data); Additional Explanation यह विकल्प सही Core PHP solution नहीं है।