//需要单双引号转移的字符串$content = '需要单双引号转移的"字符串"';if (!get_magic_quotes_gpc()) { $content = addslashes($content);}