ysbl

每天获取多一点

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2020年3月29日

摘要: $this->assign('controller',$request->controller()); $this->assign('module',$request->module()); $this->assign('action',$request->action()); —————————— 阅读全文
posted @ 2020-03-29 22:28 ysbl 阅读(1551) 评论(0) 推荐(0)

摘要: php实现返回上一页的功能的3种有效方法 header(location:你的上一页的路径); // 注意这个函数前不能有输出 header(location:.getenv("HTTP_REFERER")); // 返回其调用页面 echo"<script>alert('随便写点什么');hist 阅读全文
posted @ 2020-03-29 22:26 ysbl 阅读(766) 评论(0) 推荐(0)

摘要: $start_memory = memory_get_usage();$foo = "Some variable";echo memory_get_usage() - $start_memory;这个可以获取所有变量类型的大小strlen($foo) 这个可以获取当前字符串的字节大小 除以8就是位大 阅读全文
posted @ 2020-03-29 00:07 ysbl 阅读(3240) 评论(0) 推荐(0)