public/wordpress/wp-content/plugins/wp-courseware/includes/functions/utilities.php
/**
 * Retrieves the MySQL server version. Based on $wpdb.
 *
 * @since 4.4.0
 *
 * @return array Database Vesion information.
 */
Retrieves the MySQL server version. Based on $wpdb.

@return array Database Vesion information.
Retrieves the MySQL server version . Based on $wpdb . @return array Database Vesion information .
function wpcw_get_server_database_version() {
	global $wpdb;
	if ( empty( $wpdb->is_mysql ) ) {
		return array(
			'string' => '',
			'number' => '',
		);
	}
	if ( $wpdb->use_mysqli ) {
		$server_info = mysqli_get_server_info( $wpdb->dbh );
	} else {
		$server_info = mysql_get_server_info( $wpdb->dbh );
	}
	return array(
		'string' => $server_info,
		'number' => preg_replace( '/([^\d.]+).*/', '', $server_info ),
	);
}
function wpcw_get_server_database_version ( ) { global $ wpdb ; if ( empty ( $ wpdb -> is_mysql ) ) { return array ( 'string' => '' , 'number' => '' , ) ; } if ( $ wpdb -> use_mysqli ) { $ server_info = mysqli_get_server_info ( $ wpdb -> dbh ) ; } else { $ server_info = mysql_get_server_info ( $ wpdb -> dbh ) ; } return array ( 'string' => $ server_info , 'number' => preg_replace ( '/([^\d.]+).*/' , '' , $ server_info ) , ) ; }
Retrieves the MySQL server version.
Retrieves the MySQL server version .