JSON/PHP Array Converter
Convert between JSON and PHP arrays, including print_r output parsing
Conversion Options
Example data to try:
• {"name": "John", "items": ["apple", "banana"]}
• {"users": [{"id": 1, "active": true}]}
Usage Tips
- JSON to PHP: Converts JSON data to PHP array syntax
- PHP to JSON: Converts PHP array code to JSON format
- print_r to JSON: Parses print_r() output back to JSON
- Choose between short [] or long array() syntax for PHP output
- Enable pretty printing for formatted, readable output