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