I have an array
Array
(
[0] => Array
(
[building_id] => 1
[name] => luke
[number] => 5
[notes] =>
)
[1] => Array
(
[building_id] => 2
[name] => luke
[number] => 8
[notes] => 7
)
)
I’m trying to show notes only if it has contennt using
foreach($buildingArray as $building) {
if(!empty($Building['notes'])) { echo '<p class="mt-3">'.$building['notes'].'</p>'; }
ut nothing seems to rendesr