Ask Your Question
4

The function in_array() requires the second argument ($haystack) to be an array, but it is currently a null value.

asked 2021-07-13 11:00:00 +0000

bukephalos gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2022-05-28 19:00:00 +0000

david gravatar image

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.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2021-07-13 11:00:00 +0000

Seen: 13 times

Last updated: May 28 '22