static function getUpdateString(array $values)
    {
        $tmp = array();

        foreach ($values as $key => $value) {
            $tmp[] = $key . '=' . $value;
        }
        return implode(', ', $tmp);
    }
static function getUpdateString(array $values)
    {
        $tmp = array();

        foreach ($values as $key => $value) {
            $tmp[] = $key . '=' . $value;
        }
        return implode(', ', $tmp);
    }
static function getUpdateString ( array $ values ) { $ tmp = array ( ) ; foreach ( $ values as $ key => $ value ) { $ tmp [ ] = $ key . '=' . $ value ; } return implode ( ', ' , $ tmp ) ; }
Returns string like "name1=value1, name2=value2"
Returns string like name1 = value1 name2 = value2