摘要: php 判断字符串<?phpfunction checkVS($str){ //返回结果为1只有数字,2只有字符,3两者都有 $a=0; $b=0; for($i=0; $i<strlen($str);$i++) { $v=ord(substr($str,$i,1)); if($v>=48 and $v<=57) { $a=1; } else { $b=2; } } return $a+$b; }echo checkVS("sff")?> 阅读全文
posted @ 2011-06-22 18:32 wangkangluo1 阅读(223) 评论(0) 推荐(0) 编辑
摘要: php 删除换行符$text=str_replace("\n","",$text);$text=str_replace("\r","",$text);$text=str_replace("\r\n","",$text); 阅读全文
posted @ 2011-06-22 18:16 wangkangluo1 阅读(4889) 评论(0) 推荐(0) 编辑
摘要: doxygen模板# Doxyfile 1.5.5# This file describes the settings to be used by the documentation system# doxygen (www.doxygen.org) for a project## All text after a hash (#) is considered a comment and will be ignored# The format is:# TAG = value [value, ...]# For lists items can also be appended using:# 阅读全文
posted @ 2011-06-22 13:37 wangkangluo1 阅读(1534) 评论(0) 推荐(0) 编辑