src/Db.php
protected function _createInsertAndReplaceValues($array) {
		$keys = [];
		$values = [];
		$binds = [];
		
		foreach ($array as $value) {
			if (is_array($value)) {
				$values[] = $value['FUNC'];
			} else {
				$values[] = '?';
				$binds[] = $value;
			}
		}

		$keys = implode(',', array_keys($array));
		$values = implode(',', $values);
		
		$returner = compact('keys', 'values', 'binds');
		return $returner;
	}
protected function _createInsertAndReplaceValues($array) {
		$keys = [];
		$values = [];
		$binds = [];
		
		foreach ($array as $value) {
			if (is_array($value)) {
				$values[] = $value['FUNC'];
			} else {
				$values[] = '?';
				$binds[] = $value;
			}
		}

		$keys = implode(',', array_keys($array));
		$values = implode(',', $values);
		
		$returner = compact('keys', 'values', 'binds');
		return $returner;
	}
protected function _createInsertAndReplaceValues ( $ array ) { $ keys = [ ] ; $ values = [ ] ; $ binds = [ ] ; foreach ( $ array as $ value ) { if ( is_array ( $ value ) ) { $ values [ ] = $ value [ 'FUNC' ] ; } else { $ values [ ] = '?' ; $ binds [ ] = $ value ; } } $ keys = implode ( ',' , array_keys ( $ array ) ) ; $ values = implode ( ',' , $ values ) ; $ returner = compact ( 'keys' , 'values' , 'binds' ) ; return $ returner ; }
Creates an insert and replace string of an associative array for use in a SQL query

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