MySQL 8.0 Reference Manual Including MySQL NDB Cluster 8.0

28.6.6.16 mysql_escape_string()

Note

Do not use this function. mysql_escape_string() does not have arguments that enable it to respect the current character set or the quoting context. Use mysql_real_escape_string_quote() instead.