Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php json foreach

$user = json_decode(file_get_contents($analytics));
foreach($user->data as $mydata) {
         echo $mydata->name . "
";
         foreach($mydata->values as $values)
         {
              echo $values->value . "
";
         }
}
 
PREVIOUS NEXT
Tagged: #php #json #foreach
ADD COMMENT
Topic
Name
4+5 =