Go Back
array_contains( array, value )
Returns: array ([values...])
[values...]
Returns the index of the first found instance of value in array. If it does not exist, returns -1 instead.
value
array
-1
var _contains = array_contains( [ "eggs", "bread", "milk" ], "bread" ); show_debug_message( _contains );
mixed
There was an error while loading. Please reload this page.
Home
About & Support
Features
Setting Up
Latest Changes
Releases
Manual