Go to: Synopsis. Return value. MEL examples.
int intArrayContains(int $item, int[] $list)
None
Variable Name | Variable Type | Description |
---|---|---|
$item | int | The int item to search for in the int array. |
$list | int[] | A list of int values. |
int $list[] = { 1, 2, 3 }; // ,Result:, 1 2 3 // int $found = intArrayContains( 1, $list ); // Result: 1 // $found = intArrayContains( 2, $list ); // Result: 1 // $found = intArrayContains( 0, $list ); // Result: 0 //