摘要:
<?php //PHP_URL_SCHEME, PHP_URL_HOST, PHP_URL_PORT, PHP_URL_USER, //PHP_URL_PASS, PHP_URL_PATH, PHP_URL_QUERY or PHP_URL_FRAGMENT $url = "http://www.baidu.com/abc/ab/1.php?id=1"; $path = parse_url($... 阅读全文
摘要:
PHP中计算两个时间相差的天数、小时数、分钟数、秒数 阅读全文
摘要:
<?php function get_last_month_last_day($date=''){ if ($date!='') { $time = strtotime($date); }else{ $time = time(); } $day = date('j',$time); //获取该日期是当前月的第几天 return date('Y-m-d',strtotime("-{$day} day 阅读全文