数组问题整理
$arr[] //用于收集子数组;
serialize($arr) unserialize() //数组字符化
setcookie("car", serialize($arr), time()+3600); //数组必须转化为字符$arr[] //用于收集子数组;
serialize($arr) unserialize() //数组字符化
setcookie("car", serialize($arr), time()+3600); //数组必须转化为字符php再调用json_decode从字符串对象生成json对象时,如果使用[]操作符取数据,会得到下面的错误:Cannot use object of type stdClass as array产生...
<?php function xml_entities($string) { //过滤emod $ts_zifu= json_encode($st...
声明为空isset($_POST['user_email']),或者,empty($_POST['user_email'])在php.ini中设置error_repor...
nginx 配置location / {rewrite ^(.*)$ /index.php?s=/$1 last;}code rotoo.top.7z...
echo date('Y-m-d',$date); PHP里面将date型数据输出: echo $date; PHP里面将dat...
用substr函数实现substr(md5(变量),8,16);就可以实现默认的md5(变量)输出的是32位加密方法...