In general, there is
$nees = array(); foreach($json as $row) { $nees[$row[name]]=$row[value]; } and the second one is the same, but now how to compare name with another list in which name == name? I tried it like this:
foreach($nees as $kk => $kkz) { foreach($nees2 as $kk2 => $kkz2) { if($kk==$kk2){ echo $kkz."\r";} } }
if($kk==$kk2){ echo $kk; echo $nees[$kk]; echo $nees2[$kk];}if($kk==$kk2){ echo $kk; echo $nees[$kk]; echo $nees2[$kk];}if($kk==$kk2){ echo $kk; echo $nees[$kk]; echo $nees2[$kk];}- Jean-Claude