将中文全角字符转成半角
/**
* @desc 将中文全角字符转换成半角
* @author huangxiaoyun
* @date 2014-04-22
* @param string $str
* @return string
*/
function make_semiangle($str) {
$arr = array('0' => '0', '1' => '1', '2' => '2', '3' => '3', '4' => '4',
'5' => '5', '6' => '6', '7' => '7', '8' => '8', '9' => '9',
'A' => 'A', 'B' => 'B', 'C' => 'C', 'D' => 'D', 'E' => 'E',
'F' => 'F', 'G' =&g...
查看全文
posted @ 2015-09-22 11:06:52