I want to get all keys of the array an compare each key to number, somthing like that:
array(
[0] => 7
[1] => 8
[2] => 4
[3] => 6
)
if (6 != EACH KEY OF ARRAY) {
so...
}
The condition wont show because there is [3] => 6 and the key 6 = 6 of course.
There is a function to do it? somthing else?
.
Example:
Result:
If however, you want to check if the value of 6 is present in the array, use
in_arraylike this: