<?php $arr = [1,3,5,3,7]; $sortedArr = $arr; sort($sortedArr); var_dump(count(array_intersect_assoc($arr, $sortedArr)));
You have javascript disabled. You will not be able to edit any code.