chrisjwray
Programmer
Hello everybody.
Is there a function to check an array to see if it contains a specific element.
I basically need to check the $_GET array to see if a value has been passed, if it hasn't I need to use a default value. At present I get an error if I try to reference an element in the arry which doesnt exist as it may not have neeb passed to the page.
Thanks in advance
Chris W
Is there a function to check an array to see if it contains a specific element.
I basically need to check the $_GET array to see if a value has been passed, if it hasn't I need to use a default value. At present I get an error if I try to reference an element in the arry which doesnt exist as it may not have neeb passed to the page.
Thanks in advance
Chris W