All pastes #188227 Raw Edit

Anonymous

public php v1 · immutable
·published 2006-10-01 22:26 UTC
rendered paste body
        var_dump($data);        $values = array();        $where = array();        $whereTypes = array();        $hasChanged = false;        foreach ( $data as $key => &$value) {            //if there's a backup, things got changed            if (isset($backup[$key])) {                $values[$key] = $value;                $where[$key] = $backup[$key];                //$whereTypes[] = $this->creator->getTypeOfField($key);                $whereTypes[] = gettype($backup[$key]);                                $hasChanged = true;            }            else {                $where[$key] = $value;                $whereTypes[] = $type = gettype($backup[$key]);                if (!($type == 'string' || $type == 'integer')) {                    echo 'Object found, printing: ';                    var_dump($backup[$key]);                    echo gettype($backup[$key]);                }            }        }