public function indexOf($collection=null, $item=null) {
    list($collection, $item) = self::_wrapArgs(func_get_args(), 2);
    
    $collection = self::_collection($collection);
    
    $key = array_search($item, $collection, true);
    return self::_wrap((is_bool($key)) ? -1 : $key);
  }
public function indexOf($collection=null, $item=null) {
    list($collection, $item) = self::_wrapArgs(func_get_args(), 2);
    
    $collection = self::_collection($collection);
    
    $key = array_search($item, $collection, true);
    return self::_wrap((is_bool($key)) ? -1 : $key);
  }
public function indexOf ( $ collection = null , $ item = null ) { list ( $ collection , $ item ) = self :: _wrapArgs ( func_get_args ( ) , 2 ) ; $ collection = self :: _collection ( $ collection ) ; $ key = array_search ( $ item , $ collection , true ) ; return self :: _wrap ( ( is_bool ( $ key ) ) ? - 1 : $ key ) ; }
Get the index of the first match
Get the index of the first match