The function isn't coming to mind but I've been working for a while now so I'm probably just getting a blank but; how would I check if variable $x exists within array $y[] I know I could set up a loop to go through element of $y[] but is there a quick way to check it?
Use in_array() if (in_array ($x, $y)){ print "It is there "; } http://www.plus2net.com/php_tutorial/in_array.php