Something more user-friendly?
Hmm...
Maybe this will work for you:
<?php
$num_array = array(1, 1, 2, 3, 4, 1, 2, 3, 3, 3, 4, 5, 18, 5);
$num_count = array();
foreach($num_array as $value) {
if(!isset($num_count[$value]))
{
$num_count[$value] = 1;
}
else
{
$num_count[$value] = $num_count[$value] + 1;
}
}
foreach($num_count as $key=>$value)
{
echo $key . ' = ' . $value . '<br />';
}
?>
You will have to forgive me if this is a silly way to do this: I am just waking up, LOL!!! 😃