<?php $something = [3, 2, 1, '2', 3, 6, 5, 1, 1]; $liste = []; foreach ($something as $value) { $liste[$value] = $value; } var_export($liste);
You have javascript disabled. You will not be able to edit any code.