Zend Certified PHP Engineer (ZCE) PHP 7.1 — Question 5

What Content-Type HTTP header value is required when sending an HTTP POST request using JavaScript to ensure that PHP can access the data?

Answer options

Correct answer: B

Explanation

The correct answer is B because it specifies the format of the data being sent in the POST request, allowing PHP to correctly interpret it. The other options are either incorrect formats or not commonly used for POST requests in this context.