Answers for "php json object loop through properties"

PHP
3

php loop through json

$arr = json_decode('[{"var1":"9","var2":"16","var3":"16"},{"var1":"8","var2":"15","var3":"15"}]');

foreach($arr as $item) { //foreach element in $arr
    $uses = $item['var1']; //etc
}
Posted by: Guest on March-20-2020

Code answers related to "php json object loop through properties"

Browse Popular Code Answers by Language