I want to check that the array has no values ββor that the values ββin the array are empty. Can someone explain how to do this?
Someday I found out a very smart solution here on SO
if(!array_filter($array)) { //array contains only empty values }
or even smarter (if applicable):
if(!array_filter($array,'trim')) { //array contains only empty values }
You need the empty() function, here is the documentation of the empty function http://php.net/manual/en/function.empty.php
empty()