I have used array_column() in a project, and after uploading I found out that only PHP 5.5 or above support this function, and I think the hosting I use don\'t
array_column()
Using array_map() instead, something like:
array_count_values( array_map( function($value) use ($idForBar) { return $value[$idForBar]; }, json_decode( json_encode($queryResultArray), true ) ) );