<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>return $string; <br>} <br>