PHP
php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?php
//this is not woeking code, that i asked wuestion with. the working version is as a coment in the foreach loop
$kur = "KK";
$outputZ = '[{"record_id":"1","kuerzel":"KK","ansprechpartner":"Name_1","address":"Street 2","plz":"123456"},{"record_id":"2","kuerzel":"CC","ansprechpartner":"Name_2","address":"Bulevard 13","plz":"987654"},{"record_id":"3","kuerzel":"FaM","ansprechpartner":"Name_3","address":"Something","plz":"666"}]';
$decoZ = json_decode($outputZ);
// TESTING
//print_r ($decoZ);
$arr ="";
foreach($decoZ as $array){
foreach($arr as $val){
//foreach($array as $val){
echo $val . "<br/>";
}
}
?>
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run