I got this
$data = json_decode($json, true)["value1"];
after this I sort the response to name value:
foreach($data as $test) {
echo $test['name'];
}
this shows me all names I need, this worked perfectly.
Output: name1 name2 name3
Question: What have I to do, to get the foreach output in new single variables, so I can use them through the rest of the script ?
Expl.: $name_1 = name1;
it maybe that I completely wrong.
so much thanks from a newbie who writes his 1st project.
$data[0]would echo name1