Which statement correctly describes the behavior of the `$_POST` superglobal when `Content-Type` is `application/json`?

PHP Intermediate Hard

PHP Intermediate — Hard

Which statement correctly describes the behavior of the `$_POST` superglobal when `Content-Type` is `application/json`?

Key points

  • $_POST is strictly for form-encoded data.
  • JSON payloads must be read manually via php://input.
  • Content-Type headers dictate superglobal population.

Ready to go further?

Related questions