Turn JSON into a PHP array. To get your PHP array, paste your JSON into the input field below. You will retrieve a formatted PHP array string that you can use in your code. It's returned in a readable format, so you can easily copy and paste it into your project. It does not use the array() function, but the short array syntax for brevity. (And your sanity.) The json needs to be using double quotes.