(PHP 4 = 4.3.0) This function will escape special characters in the unescaped_string, taking into account the current charset of the connection so that it is safe to place it in a mysql_query(). 注意 mysql_real_escape_string() does not escape% and _. 例 1 mysql_real_escape_string() example The above example would produce the following output: See also: mysql_escape_string(), mysql_character_set_name().