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 support PHP 5.5 or above.
So I want to know if is there any alternate to fix this error?
This is how I am using array_count
in my project:
array_count_values(array_column(json_decode(json_encode($queryResultArray), true), $idForBar));
This is working fine in my local xampp and wampp also, but on server it is giving issue. Looking any alternate function or solution.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…