This is an example of the array I am working with
array(7)
{
["ClassId"]=> int(26)
["ClassName"]=> string(9) "Candidate"
["Data"]=> array(1)
{
[0]=> array(8)
{
["AppDataId"]=> int(17736)
["FirstName"]=> string(4) "hano"
["LastName"]=> string(11) "steenhuizen"
["CvTxtField"]=> string(4) "coal"
["Telephone"]=> string(6) "2345§"
["Email"]=> string(27) "hano11aaaaa@steenhuizen.com"
["Abstract"]=> string(16) "hano steenhuizen"
["TimeStamp"]=> string(22) "2017-09-05 06:08:41+02"
}
}
["RowCount"]=> int(1)
["PageNumber"]=> int(1)
["PageSize"]=> int(100)
["QueryTime"]=> string(6) "0.009s"
}
For the life of me, I just cannot loop this with a basic PHP foreach loop? $objApi
contains the array above
echo '<table>';
foreach($objApi as $value)
{
echo '<tr><td>' . $value['FirstName'] . '</td></tr>';
}
echo '</table>
I would love to understand the workings of the array better as for some reason I just cannot get it right.