Skip to content

Tag: php

How can I get each value of array in PHP?

I get an endpoint which take some products of the database. That’s endpoint brings a JSON which looks like this: So, I need to make a table which shows colour[0] with size[0], colour[1] with size[1], etc. The main problem is that I can’t access by the name of the column (size and colour), because …

Extracting json string with PHP

JSON string that i received from the API Information that i wanted to extract My attempt The output: Did the JSON string that i received is in bad format? Why does it says undefined property? Appreciate any helps. thanks! Post that i’ve refer to: How do I extract data from JSON with PHP? Answer token is…

MySQL returns wierd result with normal query

So I have this code: And it returns this instead of the normal values in the table: array(12) { [0]=> int(2) [“ID”]=> int(2) 1=> string(7) “anderes” [“Naam”]=> string(7) “anderes” [2]=> string(4) “0.00” [“Beschrijving”]=&gt…