
PHP
零起飞
优秀的后台系统,并不在于功能最多最全,而是要最符合客户的需求。
展开
-
hbuilder 打包hui框架生成时常遇到的问题
1、导航自动增高,需要修改设置statusbar 为false状态。2、使用导航需要设置一下。原创 2024-06-13 11:27:02 · 288 阅读 · 0 评论 -
PHP通用函数 - 日期生成时间轴
/** * 时间轴函数, Unix 时间戳 * @param int $time 时间 */function TranTime($time) { //$time = strtotime($time); $nowTime = time (); $message = ''; //一年前 if (idate ( 'Y', $nowTime ) != idate ( 'Y', $time )) { $message = date ( 'Y年m月d.原创 2021-07-31 09:28:36 · 209 阅读 · 0 评论 -
PHP获取上周、本周、上月、本月、本季度、上季度时间方法大全
<?php echo date("Ymd",strtotime("now")), "\n"; echo date("Ymd",strtotime("-1 week Monday")), "\n"; echo date("Ymd",strtotime("-1 week Sunday")), "\n"; echo date("Ymd",strtotime("+0 week Monday")), "\n"; echo date("Ymd",strtotime("+0.原创 2021-07-31 09:26:56 · 249 阅读 · 0 评论 -
PHP采集程序常用的采集函数
获取所有链接内容和地址function getAllURL($code){preg_match_all('/<a\s+href=["|\']?([^>"\' ]+)["|\']?\s*[^>]*>([^>]+)<\/a>/i',$code,$arr);return array('name'=>$arr[2],'url'=>$arr[1]);}获取所有的图片地址function getImgSrc($code){$reg = "原创 2021-07-31 09:25:21 · 160 阅读 · 0 评论