public function except()
    {
        $cols = func_get_args();
        //method returns all rows in the collection except for those with the specified keys
        $dstore = new DataStore;
        foreach ($this->rows as $row) {
            foreach ($cols as $col) {
                if (isset($row[$col])) {
                    unset($row[$col]);
                }
            }
            $dstore->append($row);
        }

        $columnsMeta = Utility::get($this->metaData, "columns");
        if ($columnsMeta) {
            foreach ($cols as $col) {
                if (isset($columnsMeta[$col])) {
                    unset($columnsMeta[$col]);
                }
            }
        }
        $dstore->meta(array("columns"=>$columnsMeta));
        return $dstore;
    }
public function except()
    {
        $cols = func_get_args();
        //method returns all rows in the collection except for those with the specified keys
        $dstore = new DataStore;
        foreach ($this->rows as $row) {
            foreach ($cols as $col) {
                if (isset($row[$col])) {
                    unset($row[$col]);
                }
            }
            $dstore->append($row);
        }

        $columnsMeta = Utility::get($this->metaData, "columns");
        if ($columnsMeta) {
            foreach ($cols as $col) {
                if (isset($columnsMeta[$col])) {
                    unset($columnsMeta[$col]);
                }
            }
        }
        $dstore->meta(array("columns"=>$columnsMeta));
        return $dstore;
    }
public function except ( ) { $ cols = func_get_args ( ) ; //method returns all rows in the collection except for those with the specified keys $ dstore = new DataStore ; foreach ( $ this -> rows as $ row ) { foreach ( $ cols as $ col ) { if ( isset ( $ row [ $ col ] ) ) { unset ( $ row [ $ col ] ) ; } } $ dstore -> append ( $ row ) ; } $ columnsMeta = Utility :: get ( $ this -> metaData , "columns" ) ; if ( $ columnsMeta ) { foreach ( $ cols as $ col ) { if ( isset ( $ columnsMeta [ $ col ] ) ) { unset ( $ columnsMeta [ $ col ] ) ; } } } $ dstore -> meta ( array ( "columns" => $ columnsMeta ) ) ; return $ dstore ; }
Return new datastore with all columns except some

Examples

$newStore = $store->except("age","city");

@return DataStore New datastore containing result
Return new datastore with all columns except some