Go to: Synopsis. Return value. MEL examples.
 
int intArrayCount(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, 2, 2 };
  // Result: item1 item2 item1 //
  int $count = intArrayCount( 1, $list );
  // Result: 1 //
  $count = intArrayCount( 2, $list );
  // Result: 3 //
  $count = intArrayCount( 4, $list );
  // Result: 0 //