I need to get the count of each countries by the database.
Here my coding is
$query = $this->db->query("SELECT country FROM list");
echo"<pre>"; print_r($query->result());
The select query returns object as result and array_count_values need array in the parameter
So how can I use array_count_values to dynamically pass values in CodeIgniter.