All quizzes
PHPChallengePredict the output

After both loops run, what does print_r output?

<?php
$nums = [1, 2, 3];
foreach ($nums as &$n) {
    $n *= 2;
}
foreach ($nums as $n) {
    // reuse $n
}
print_r($nums);