If I had this code:
$result = 1;
$square = array(
"00" => -1,
"0" => 0,
"1" => 1,
);
And wanted to know whether $result is equal to ANY of the array VALUES of $square (-1, 0 or 1).
I´m am guessing there should be a function that compares a variable to all the array´s values and returs TRUE or FALSE accordingly.
If there isn´t such a function I am open to any suggestions and/or workarounds you might have hidden under your sleeves :)
Thanks in advance