摘要:
$fistday= date('Y-m-1 23:59:59'); $lastday= strtotime("$fistday+1 month -1 day"); 阅读全文
摘要:
$fistday= date('Y-m-1 23:59:59'); $lastday= strtotime("$fistday+1 month -1 day"); 阅读全文
摘要:
方法一、 $xml = new DOMDocument(); $xml->loadXML($xml); $array = array( 'ToUserName'=>$xml->getElementsByTagName('ToUserName')->item(0)->nodeValue, 'FromU 阅读全文
摘要:
mb_convert_encoding($str, 'UTF-8', 'UTF-8,GBK,GB2312,BIG5'); 阅读全文
摘要:
$post = json_encode(['template_id'=>'ZLqk8pcsAoXZ1eYa6vpAgfX28MPdYU3ayMaSPHaaa']); $url = "https://qyapi.weixin.qq.com/cgi-bin/oa/gettemplatedetail?ac 阅读全文
摘要:
#DUAL是一个伪表,不存在的表。 SELECT 8*9 FROM DUAL #输出72 阅读全文
摘要:
#IFNULL:判断字段是否为NULL,如果是NULL,返回第一个字段,如果不是,返回第二个字段 SELECT IFNULL(fist_name,last_name) FROM table_name 阅读全文
摘要:
select distinct age,id from table_name; #以上语句过滤不掉age字段的重复(distinct必须写在字段开头,否则报错),原因是distinct认为要过滤age和id两个字段,所以一般单个字段使用,或者和count使用。 select count(distin 阅读全文
摘要:
修改mysql配置文件my.ini 1、在[mysql]下添加: default-character-set=utf8 2、在[mysqld]下添加: character-set-server=ut8 collation-server=utf8_general_ci 阅读全文
摘要:
//文件夹路劲 $dir = './Public/Upload/ConponPack/'; //检测文件夹是否存在,不存在就创建文件夹 if(!is_dir($dir)) { mkdir($dir,0777,true); } 阅读全文
摘要:
$arr = array(1,2,3); $res = var_export($arr); echo $res ; //输出: // array ( // 0 => 1, // 1 => 2, // 2 => 3, // ) www.php.net的解读:var_export() 函数返回关于传递给 阅读全文
|