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>';
}
}
array(1) { ["Username"]=> array(3) { [125678]=> array(4) { ["date"]=> string(7) "1234567" ["status"]=> string(4) "paid" ["amount"]=> int(1000) ["system"]=> string(3) "ABX" } [1201]=> array(4) { ["date"]=> string(7) "1234568" ["status"]=> string(4) "paid" ["amount"]=> int(1000) ["system"]=> string(3) "ABX" } [1345]=> array(4) { ["date"]=> string(7) "1234569" ["status"]=> string(4) "paid" ["amount"]=> int(1000) ["system"]=> string(3) "ADB" } } }
{
"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
}
}
}
снова ошибка....кавычки обе надо менять, а не 1.