Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

This means that you need to provide an array as the second argument to the inarray() function, which can be searched for a specific value. You cannot pass a null value as the haystack parameter. If you want to check if a value exists in an array, you need to pass that array as the second argument to the inarray() function.