From 90483f6eb389f041e0dbd0fca8bb766edbc85910 Mon Sep 17 00:00:00 2001 From: chai Date: Thu, 17 Mar 2022 21:02:13 +0800 Subject: +init --- functions.php | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 functions.php (limited to 'functions.php') diff --git a/functions.php b/functions.php new file mode 100644 index 0000000..8a7824b --- /dev/null +++ b/functions.php @@ -0,0 +1,29 @@ +"; +} + +function println($content) +{ + print_r($content); + echo "
"; +} + +// 替换为html转义字符,否则插入sql会有问题 +function html_escape_string($str) { + $str = str_replace("'", "'", $str); // ' + $str = str_replace('"', """, $str); // " + return $str; +} + +?> + -- cgit v1.1-26-g67d0