<?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.33, 8.2.0 - 8.2.29, 8.3.0 - 8.3.25, 8.4.1 - 8.4.12
- <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:
110.13 ms | 407 KiB | 5 Q