<?php $ar = array(1,6,2,9,3,5,7,4); sort($ar); $count = count($ar); foreach ($ar as $index => $val) { if ($index != $val) { echo $index; } }
You have javascript disabled. You will not be able to edit any code.