<?php
$base = json_decode( '{
"Username": {
"125678": {
"date": "123456",
"status": "paid",
"amount": 1000,
"system": "ABX"
},
"1201": {
"date": "123456",
"status": "paid",
"amount": 1000,
"system": "ABX"
},
"1345": {
"date": "123456",
"status": "paid",
"amount": 1000,
"system": "ADB"
}
}
}', true);
foreach ($base as $username => $userobjects) {
foreach ($userobjects as $objectkey => $objectvalue) {
echo '<th scope="row">'.$objectvalue["date"].'</th><td>'.$objectvalue["status"].'</td><td>'.$objectvalue["system"].'</td>';
}
}
- Output for 7.4.0 - 7.4.33, 8.0.1 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
- <th scope="row">123456</th><td>paid</td><td>ABX</td><th scope="row">123456</th><td>paid</td><td>ABX</td><th scope="row">123456</th><td>paid</td><td>ADB</td>
preferences:
142.62 ms | 402 KiB | 121 Q