src/Db.php
protected function _createUpdateValues($array) {
		$values = [];
		$tokens = [];
		
		// divide normal values from function calls
		foreach ($array as $key => $value) {
			if (is_array($value)) {
				$tokens[] = '`'.$key.'`='.$value['FUNC'];
			} else {
				$tokens[] = '`'.$key.'`=?';
				$values[] = $value;
			}
		}
		
		$tokens = implode(', ', $tokens);	

		$returner = compact('tokens', 'values');
		return $returner;
	}
protected function _createUpdateValues($array) {
		$values = [];
		$tokens = [];
		
		// divide normal values from function calls
		foreach ($array as $key => $value) {
			if (is_array($value)) {
				$tokens[] = '`'.$key.'`='.$value['FUNC'];
			} else {
				$tokens[] = '`'.$key.'`=?';
				$values[] = $value;
			}
		}
		
		$tokens = implode(', ', $tokens);	

		$returner = compact('tokens', 'values');
		return $returner;
	}
protected function _createUpdateValues ( $ array ) { $ values = [ ] ; $ tokens = [ ] ; // divide normal values from function calls foreach ( $ array as $ key => $ value ) { if ( is_array ( $ value ) ) { $ tokens [ ] = '`' . $ key . '`=' . $ value [ 'FUNC' ] ; } else { $ tokens [ ] = '`' . $ key . '`=?' ; $ values [ ] = $ value ; } } $ tokens = implode ( ', ' , $ tokens ) ; $ returner = compact ( 'tokens' , 'values' ) ; return $ returner ; }
Creates an update string of an associative array for use in a SQL query

@param	array $array An associative array: column_name > value
@return	string
Creates an update string of an associative array for use in a SQL query