<?php $fooList = [10, 20, 30, 40, 50, 60]; $barList = []; foreach ($fooList as $fooItem) { $barList[] = &$fooItem; } var_dump($fooList); var_dump($barList);
You have javascript disabled. You will not be able to edit any code.