Can someone explain in detail what is hapenning here, because in the second loop pass, I get result "one" "two" "three" "three"?
$a = array("one", "two", "three", "four");
foreach ($a as &$e) {
echo $e . PHP_EOL;
}
foreach ($a as $e) {
echo $e . PHP_EOL;
}