mysqli_real_escape_string Escapes special characters in a string for use in a SQL statement, taking into account the current charset of the connection Description stringmysqli_real_escape_string resourcelink stringescapestr &warn.undocumented.func; See also mysqli_character_set_name.