public function without($collection=null, $val=null) {
    $args = self::_wrapArgs(func_get_args(), 1);
    $collection = $args[0];
    $collection = self::_collection($collection);
    
    $num_args = count($args);
    if($num_args === 1) return self::_wrap($collection);
    if(count($collection) === 0) return self::_wrap($collection);
    
    $__ = new self;
    $removes = $__->rest($args);
    foreach($removes as $remove) {
      $remove_keys = array_keys($collection, $remove, true);
      if(count($remove_keys) > 0) {
        foreach($remove_keys as $key) {
          unset($collection[$key]);
        }
      }
    }
    return self::_wrap($collection);
  }
public function without($collection=null, $val=null) {
    $args = self::_wrapArgs(func_get_args(), 1);
    $collection = $args[0];
    $collection = self::_collection($collection);
    
    $num_args = count($args);
    if($num_args === 1) return self::_wrap($collection);
    if(count($collection) === 0) return self::_wrap($collection);
    
    $__ = new self;
    $removes = $__->rest($args);
    foreach($removes as $remove) {
      $remove_keys = array_keys($collection, $remove, true);
      if(count($remove_keys) > 0) {
        foreach($remove_keys as $key) {
          unset($collection[$key]);
        }
      }
    }
    return self::_wrap($collection);
  }
public function without ( $ collection = null , $ val = null ) { $ args = self :: _wrapArgs ( func_get_args ( ) , 1 ) ; $ collection = $ args [ 0 ] ; $ collection = self :: _collection ( $ collection ) ; $ num_args = count ( $ args ) ; if ( $ num_args === 1 ) return self :: _wrap ( $ collection ) ; if ( count ( $ collection ) === 0 ) return self :: _wrap ( $ collection ) ; $ __ = new self ; $ removes = $ __ -> rest ( $ args ) ; foreach ( $ removes as $ remove ) { $ remove_keys = array_keys ( $ collection , $ remove , true ) ; if ( count ( $ remove_keys ) > 0 ) { foreach ( $ remove_keys as $ key ) { unset ( $ collection [ $ key ] ) ; } } } return self :: _wrap ( $ collection ) ; }
Returns a copy of the array with all instances of val removed
Returns a copy of the array with all instances of val removed