Hey guys ...
I have an array, $thistemp, which has values, 1, 3, 5, 6, 12, 15, 19, 22.
I also have a loop which goes through a bunch of numbers, and I want it to check on each number whether that number exists as a value in $thistemp.
I tried this with isset and array_key_exists, but I can't get it to work.
If I do var_dump(isset($thistemp['5'])) for example, it comes back false.
Any ideas?
Thanks,
Peter.
[SOLVED] Does a value exist in an array?
Moderator: General Moderators