wpdb::get_charset_collate(): string

Retrieves the database character collate.


Return

string The database character collate.


Top ↑

Source

File: wp-includes/class-wpdb.php. View all references

public function get_charset_collate() {
	$charset_collate = '';

	if ( ! empty( $this->charset ) ) {
		$charset_collate = "DEFAULT CHARACTER SET $this->charset";
	}
	if ( ! empty( $this->collate ) ) {
		$charset_collate .= " COLLATE $this->collate";
	}

	return $charset_collate;
}


Top ↑

Changelog

Changelog
Version Description
3.5.0 Introduced.

Top ↑

User Contributed Notes

You must log in before being able to contribute a note or feedback.