I know that was ask many times but I didn't find something related to me. I'm new to PHP and I'm learning how to use foreach right now. I got this code:
foreach($revert_result as $tu => $row){
$address = $row['Addr.Line2'] . $row['Addr.zip'] . $row['Addr.City'];
}
$row['Addr.Line2'] etc. works good, it display the information I want but only the last element. So the last element overwrites all the other elements and I don't know why.
Note that $row['Addr.Line2'] etc. are datas from an ERP system. This should be correct because it can display the datas.
Can someone explain me why it is or give me a hint how to fix?
Thanks in advance
$addresson each loop iteration, so it will always contain only the last value for$rowwhen inspected after the loop.