The mysqli_get_charset() function returns an object containing the properties of the current character
set (charset). This helps us verify whether the database correctly supports our characters, such as č, š, and ž.
Practical use: Instead of just guessing which encoding the connection uses, this function gives
us a detailed insight into the server settings. Below, take a look at the object output using
var_dump():