function writelog($log){ $filename=date("Ymd").".log"; @$handle=fopen($filename, "a"); @fwrite($handle,$log); @fclose($handle); }
htmlspecialchars() 函数把预定义的字符转换为 HTML 实体。
预定义的字符是:
& (和号)成为 &
" (双引号)成为 "
' (单引号)成为 '
< (小于)成为 <
> (大于)成为 >
提示:如需把特殊的 HTML 实体转换回字符,请使用 htmlspecialchars_decode() 函数。