Skip to main content
Checks whether the array contains a certain element. If yes, it returns 1; otherwise, it returns 0.

Syntax

Examples

text
You can also check whether the array contains NULL.
text
You can check whether the multi-dimensional array contains a certain subarray. At this time, you need to ensure that the subarray elements match exactly, including the element arrangement order.
text

keyword

ARRAY_CONTAINS,ARRAY