摘要: $xx = '123334555667777'; //用到正向预言 $xxxx = preg_replace('/(\d)(?=\1)/is','',$xx); //结果为变为$xxxx1234567 阅读全文
posted @ 2016-11-30 19:12 [言_午] 阅读(4367) 评论(0) 推荐(0) 编辑
摘要: //获取apache进程id$pid = exec('echo $PPID');error_log(date('Y-m-d H:i:s').' '.$pid."\n",3,'/var/tmp/getcom.pid'); 阅读全文
posted @ 2016-11-30 19:09 [言_午] 阅读(209) 评论(0) 推荐(0) 编辑