json 2d array php
Below is the code I have written.it will be quite difficult now to convert it from Array to object as it is being used at so many places. Thats why we have used jsondecode function to convert data into an array. arraypush function will add formdata array into existing json array (arrdata). jsonencode() will convert array into JSON format, so that we can writeJSONPRETTYPRINT will work only in PHP version 5.3 and above. You are at: Home » convert multiple json to php array.Want to read this file and store into database, but I couldnt convert json to php array which further I can store into database. I tried jsondecode function, but its not working. true?> I omitted a lot from that script, but as you can see at the end of the script, I use the PHP jsonencode method to convert a PHP array to JSON. Php jsonencode and jsondecode detailed examples and examples. In the PHP language to use JSON and json restore the array method.