You can decode a JSON object into a PHP array using the json_decode() ______.

  • method
  • function
  • property
  • class
In PHP, you can decode a JSON object into a PHP array using the json_decode() function. It is a standalone function, not a method, property, or class. The json_decode() function takes a JSON-encoded string and converts it into a PHP value, typically an array or an object. The correct option is "function." For more information, consult the PHP documentation on json_decode(): http://php.net/manual/en/function.json-decode.php
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *