function mysql_set_charset($charset, \mysqli $link = null) { return mysqli_set_charset(\Dshafik\MySQL::getConnection($link), $charset); }