+------------------------------------------------------------------- | 感谢您使用ThinkPHP开发框架 ^_^ +------------------------------------------------------------------- | 大道至简 开发由我 WE CAN DO IT,JUST THINK +--------------------------------------------------
本文实例为大家分享了php编写一个简单的路由类,供大家参考,具体内容如下
<?php
namespace cmhc\Hcrail;
class Hcrail
{
/**
* callback function
* var callable
*/
protected static $callback;
/**
* match string or match regexp
* var string
*/
protected static $