CenterStr
来源:互联网 发布:green网络加速器官网 编辑:程序博客网 时间:2024/06/10 20:29
function CenterStr($conts,$Before,$After){ //读取两标识间内容,如<aa>123</aa>得123
$arrConts = explode("\r\n",$conts);
foreach($arrConts as $cont){
preg_match($Before."(.*)".$After."/Uis ",$cont,$match);
if(!isset($match[1]))
continue;
else
return $match[1];
}
}
$arrConts = explode("\r\n",$conts);
foreach($arrConts as $cont){
preg_match($Before."(.*)".$After."/Uis ",$cont,$match);
if(!isset($match[1]))
continue;
else
return $match[1];
}
}
- CenterStr
- UNIX环境高级编程——第一个程序
- MongoDB 客户端 MongoVuehttp://www.cnblogs.com/shanyou/archive/2011/05/20/2052354.html
- http://www.cnblogs.com/dudu/articles/4449.html
- VC++ MFC 中的SelectPalette()函数和SetStretchBltMode()函数
- IE7 设置z-index的覆盖问题
- CenterStr
- Attribute在.net编程中的应用(二)
- cygwin安装sshd服务(win7)Error installing a service: OpenSCManager: Win32 error 5:
- Attribute在.NET编程中的应用(三)
- 【eclipse】在jsp页面下, 让eclipse完全支持HTML/JS/CSS智能提示
- Attribute在.NET编程中的应用(四)
- cocos2d-x的CCArray用法
- 文件系统检查FSCK基本过程解析
- Attribute在.NET编程中的应用(五)