I have an array and I want to find out if there is at least one false value in it. I was thinking of creating an array_and() function, that just performs a logical AND on all the elements. It would return true if all values are true, otherwise false. Am I over-engineering?
I have an array and I want to find out if there is at
Share
Why dont you just use
in_array— Checks if a value exists in an arrayExample: