src/ShapeRecord.php
public function updateDBFInfo($header)
    {
        $tmp = $this->DBFData;
        unset($this->DBFData);
        $this->DBFData = [];
        foreach ($header as $value) {
            $this->DBFData[$value[0]] = (isset($tmp[$value[0]])) ? $tmp[$value[0]] : '';
        }
    }
public function updateDBFInfo($header)
    {
        $tmp = $this->DBFData;
        unset($this->DBFData);
        $this->DBFData = [];
        foreach ($header as $value) {
            $this->DBFData[$value[0]] = (isset($tmp[$value[0]])) ? $tmp[$value[0]] : '';
        }
    }
public function updateDBFInfo ( $ header ) { $ tmp = $ this -> DBFData ; unset ( $ this -> DBFData ) ; $ this -> DBFData = [ ] ; foreach ( $ header as $ value ) { $ this -> DBFData [ $ value [ 0 ] ] = ( isset ( $ tmp [ $ value [ 0 ] ] ) ) ? $ tmp [ $ value [ 0 ] ] : '' ; } }
Updates DBF data to match header.

@param array $header DBF structure header
Updates DBF data to match header .