<table cellspacing="0" cellpadding="0"><tr><td class="t_f" id="postmessage_66418"> [PHP]代码 <div class="blockcode"> <div id="code_O0x"><ol> <li>function g($name, $defaultValue = "") {</li> <li> // php这里区分大小写,将两者都变为小写</li> <li> $_GET = array_change_key_case ( $_GET, CASE_LOWER );</li> <li> $name = strtolower ( $name );</li> <li> <li> $v = isset ( $_GET [$name] ) ? $_GET [$name] : "";</li> <li> if ($v == "") </li> <li> {</li> <li> $_POST = array_change_key_case ( $_POST, CASE_LOWER );</li> <li> $v = isset ( $_POST [$name] ) ?$_POST [$name] : "";</li> <li> }</li> <li> if ($v == "")</li> <li> return $defaultValue;</li> <li> else</li> <li> {</li> <li> // 20141011 jc : js_unescape($v)会引起 where ( col_subject like '3%' ) 会变成 where ( col_subject like '%3%' )</li> <li> //$v = js_unescape($v) ;</li> <li> $v = trim($v);</li> <li> return $v;</li> <li> }</li> <li> <li> }</li> <li> <li>}</li> </ol></div> <em onclick="copycode($('code_O0x'));">复制代码</em> </div> </td></tr></table> <div class="ptg mbm mtn"> 설치, 게시, PHP</div> <div id="comment_66418" class="cm"> </div> <div id="post_rate_div_66418"></div> <br><br>