摘要: array preg_grep ( string pattern, array input [, int flags] ) ---返回一个数组,其中包括了 input 数组中与给定的 pattern 模式相匹配的单元。$arr = array('abc'=>12.213,'bb'=>12345,'ba'=>23.2321,34.3,'23'=>'3.3','23434'=>'bbb');// 返回所有含有浮点数的数组元素。$fl_array = preg 阅读全文
posted @ 2012-10-07 10:58 斌斌331313869 阅读(114) 评论(0) 推荐(0) 编辑
摘要: 在存放网站的根目录下配置多个子网站文件夹修改Apache的配置文件,设置虚拟目录(在DocumentRoot参数下添加) 1 NameVirtualHost 127.0.0.1 2 <VirtualHost 127.0.0.1> 3 DocumentRoot d:/wamp/www/center 4 ServerName center.bin.com 5 DirectoryIndex index.php 6 </VirtualHost> 7 <VirtualHost 127.0.0.1> 8 DocumentRoot d:/wamp/www/zxllogin 阅读全文
posted @ 2012-10-07 10:31 斌斌331313869 阅读(213) 评论(0) 推荐(0) 编辑