<?php $result = array_reduce(range(1, 5, 1), function ($cur, $x) { $cur[$x] = $x; return $cur; }, array()); var_dump($result);
You have javascript disabled. You will not be able to edit any code.