Example #1
0
 /**
  * PATH_INFOを配列で取得.
  */
 public static function getPathInfoArray()
 {
     if (self::$pathinfo === null) {
         if (isset($_SERVER['PATH_INFO'])) {
             self::$pathinfo = explode('/', $_SERVER['PATH_INFO']);
             array_shift(self::$pathinfo);
             // 先頭の空要素を除去
         } else {
             self::$pathinfo = array();
         }
     }
     return self::$pathinfo;
 }