网站技术分析

一点一滴的积累,一点一滴的沉淀!

tp5 获取URL信息

如果要获取当前的请求信息,可以使用\think\Request类,除了下文中的$request = Request::instance();也可以使用助手函数$request = request();例如:获取URL信息$request = Request::instance();      // 获取当前域名 echo 'domain: '&nbsp

Powered By Z-BlogPHP 1.5.2 Zero

蜀ICP备18016898;版权:2016 @陸仴 

Music