摘要:
<ul> <?php //截取utf8字符串 function utf8Substring($str, $from, $len){ return preg_replace('#^(?:[\x00-\x7F]|[\xC0-\xFF][\x80-\xBF]+){0,'.$from.'}'. '((?:[\x00-\x7F]|[\xC0-\xFF][\x80-\xBF]+){0,'.$len.'}).*#s','$1',$str); } //建立数据库链接 $conn = @mysql_connect( 阅读全文
posted @ 2011-07-11 22:41
小山
阅读(2406)
评论(0)
推荐(2)
浙公网安备 33010602011771号