<p class="intro">支持阵列的ADDSLASHES</p> <p id="con_all"> </p> <p id="con_ad1"></p> <p id="con_ad8"></p> 代码如下:<br>//SQL ADDSLASHES <br>function Saddslashes($string) { <br>if(is_array($string)) { <br>foreach($string as $key => $val) { <br>$string[$key] = Saddslashes($val); <br>} <br>} else { <br>$string = addslashes($string); <br>} <br>返回 $string; <br>} <br>