一个简单的php路由类.pdfVIP

  • 4
  • 0
  • 约2.99千字
  • 约 3页
  • 2020-09-10 发布于天津
  • 举报
本文实例为大家分享了 php 编写一个简单的路由类,供大家参考,具体内容如下 lt;?php namespace cmhc\Hcrail; class Hcrail { nbsp; /** nbsp; nbsp;* callback function nbsp; nbsp;* @var callable nbsp; nbsp;*/ nbsp; protected static $callback; nbsp; /** nbsp; nbsp;* match string or match regexp nbsp; nbsp;* @var string nbsp; nbsp;*/ nbsp; protected static $match; nbsp; protected static $routeFound = false; nbsp; /** nbsp; nbsp;* deal with get,post,head,put,delete,options,head nbsp; nbsp

您可能关注的文档

文档评论(0)

1亿VIP精品文档

相关文档