<?php $arr = array ( 1,1,2,2,2); $arr = array_count_values($arr); print_r($arr);
You have javascript disabled. You will not be able to edit any code.