PHP里面将int型数据转换成日期输出以及将date型数据输出
echo date('Y-m-d',$date);
PHP里面将date型数据输出:
echo $date;
PHP里面将date型数据转换成int型:
strtotime($date);
echo date('Y-m-d',$date);
PHP里面将date型数据输出:
echo $date;
PHP里面将date型数据转换成int型:
strtotime($date);
用substr函数实现substr(md5(变量),8,16);就可以实现默认的md5(变量)输出的是32位加密方法...
增加$arr[$iy]["pr_count"]+=$pr_count;减少$arr[$iy]["pr_count"]-=$pr_count;删除unset($a...
需要用到PHP自带函数chr()方法如下:$string=str_replace(chr(0x01),"",$string);...
将编码的json放入cookie中是我最喜欢的方法,以便从cookie中正确获取格式化的数据。 试一下:$expiry = time() + 12345;&nb...
<?php //设置cookie setcookie("user_name", "frank", time()+3600); /...
nginx 配置location / {rewrite ^(.*)$ /index.php?s=/$1 last;}code rotoo.top.7z...