If you want to use objects, try this:
foreach ($array_tmp->info as $emp)
{
echo $emp->name;
}
For arrays:
foreach ($array_tmp['info'] as $emp)
{
echo $emp['name'];
}
solved How to loop through these values in PHP [duplicate]
If you want to use objects, try this:
foreach ($array_tmp->info as $emp)
{
echo $emp->name;
}
For arrays:
foreach ($array_tmp['info'] as $emp)
{
echo $emp['name'];
}
solved How to loop through these values in PHP [duplicate]