摘要:functiongetalabnum($fnum){$nums=array("0","1","2","3","4","5","6","7","8&qu...
转载请注明来源:php把全角数字转为半角数字
  1. function getalabnum($fnum
  2.  $nums = array("0","1","2","3","4","5","6","7","8","9","+","-","%","."); 
  3.  $fnums = "0123456789+-%."
  4.  for($i=0;$i<count($nums);$i++){ 
  5.   if($nums[$i]==$fnumreturn $fnums[$i]; 
  6.  }//开源代码phpfensi.com 
  7.  return $fnum
  8. //实例应用 
  9. echo getalabnum('6'); // 6 
转载请注明来源:php把全角数字转为半角数字

  哈尔滨品用软件有限公司致力于为哈尔滨的中小企业制作大气、美观的优秀网站,并且能够搭建符合百度排名规范的网站基底,使您的网站无需额外费用,即可稳步提升排名至首页。欢迎体验最佳的哈尔滨网站建设