07 2020 档案

php unicode 转换成中文
摘要:把unicode 扔进josn里,再转成数组就变成中文了 $json = '{"str":"'.$unicode_str.'"}'; $arr = json_decode($json,true); return $arr['str']; 阅读全文

posted @ 2020-07-23 10:46 沉淀物 阅读(203) 评论(0) 推荐(0)

unset与内存容器
摘要:https://blog.csdn.net/weixin_34178244/article/details/92008641 https://www.cnblogs.com/aademeng/articles/6224054.html 变量容器在”refcount“变成0时就被销毁 把一个变量赋值给 阅读全文

posted @ 2020-07-13 11:52 沉淀物 阅读(138) 评论(0) 推荐(0)

try { }catch(Exception $e){ } 输出错误信息
摘要:try { }catch(Exception $e){ echo $e->getMessage(); //获取错误信息 echo $e->getLine(); //获取发生错误的行 echo $e->getFile();//获取发生错误的文件 echo $e->getCode();//获取错误码 } 阅读全文

posted @ 2020-07-01 16:40 沉淀物 阅读(767) 评论(0) 推荐(0)

导航