| 1 | How do you convert a JSON formatted string back into a PHP array or object using json_decode? PHP › JSON Handling in PHP | PHP | JSON Handling in PHP | Beginner |
| 2 | How do you control the depth and formatting of json_encode output, such as pretty printing JSON for readability or handling deeply nested data structures? PHP › JSON Handling in PHP | PHP | JSON Handling in PHP | Intermediate |
| 3 | How do you convert a PHP array or object into a JSON formatted string using json_encode? PHP › JSON Handling in PHP | PHP | JSON Handling in PHP | Beginner |
| 4 | What performance considerations arise when working with very large JSON payloads in PHP, and how do streaming JSON parsers help address them? PHP › JSON Handling in PHP | PHP | JSON Handling in PHP | Advanced |
| 5 | How can PHP objects implementing the JsonSerializable interface customize exactly how they are converted into JSON when passed to json_encode? PHP › JSON Handling in PHP | PHP | JSON Handling in PHP | Intermediate |
| 6 | How do you properly handle errors when parsing potentially invalid JSON, and how does the JSON_THROW_ON_ERROR flag simplify this compared to manually checking json_last_error? PHP › JSON Handling in PHP | PHP | JSON Handling in PHP | Intermediate |
| 7 | How should an API validate the structure and types of incoming JSON data to ensure it matches the expected schema before processing it further? PHP › JSON Handling in PHP | PHP | JSON Handling in PHP | Advanced |
| 8 | In a modern PHP application that primarily uses JSON for its APIs, when might you still legitimately need to work with XML, and what strategies help cleanly integrate XML handling into an otherwise JSON centric codebase? PHP › XML Handling in PHP | PHP | XML Handling in PHP | Advanced |
| 9 | What is XML, and what are the common built in ways PHP lets you read and parse an XML document? PHP › XML Handling in PHP | PHP | XML Handling in PHP | Beginner |
| 10 | How does SimpleXML let you access nested elements and attributes within an XML document using a natural, object like syntax? PHP › XML Handling in PHP | PHP | XML Handling in PHP | Beginner |
| 11 | Why is protecting against XML external entity attacks, commonly abbreviated as XXE, an important security consideration when parsing XML documents that come from an untrusted or external source? PHP › XML Handling in PHP | PHP | XML Handling in PHP | Intermediate |
| 12 | How does a try catch block work in PHP, and how do you catch and handle a specific exception that might be thrown? PHP › Error & Exception Handling | PHP | Error & Exception Handling | Beginner |
| 13 | How do you read the contents of a file in PHP using functions like file_get_contents and fopen? PHP › File Handling & File System Functions | PHP | File Handling & File System Functions | Beginner |
| 14 | When should a developer prefer using a dedicated parser or a simpler string function over a complex regular expression, particularly for structured formats like HTML or JSON? PHP › Regular Expressions in PHP | PHP | Regular Expressions in PHP | Advanced |
| 15 | How should a well designed RESTful API structure its endpoints and URL naming conventions to remain intuitive and consistent as it grows? PHP › RESTful API Development with PHP | PHP | RESTful API Development with PHP | Intermediate |
| 16 | How should a RESTful API be designed to handle complex error responses consistently, including validation errors affecting multiple fields at once? PHP › RESTful API Development with PHP | PHP | RESTful API Development with PHP | Advanced |
| 17 | What is a RESTful API, and how do standard HTTP methods like GET, POST, PUT, and DELETE map to common data operations? PHP › RESTful API Development with PHP | PHP | RESTful API Development with PHP | Beginner |
| 18 | How does an API typically use HTTP status codes to communicate the result of a request, and what do common codes like 200, 404, and 500 represent? PHP › RESTful API Development with PHP | PHP | RESTful API Development with PHP | Beginner |