手机分销商城,杂项收获


1.对MySQL LIKE 的内容进行转义

function mysql_like_quote($str)
{
return strtr($str, array("\\\\" => "\\\\\\\\", '_' => '\_', '%' => '\%', "\'" => "\\\\\'"));
}

2.1 urlencode()
非字母数字的字母,用一个百分号数字代替。 配对的方法是urldecode()

2.2 base64_encode()
sql语句 编码 配对base64_decode().

3 count()

猜你喜欢

转载自www.cnblogs.com/hangji/p/10104229.html