code: public static function segmentUri($uri = null)
      {
          $uri = (! is_null($uri)) ? $uri : $_SERVER['REQUEST_URI'];
  
          return explode('/', trim($uri, '/'));
      }
docs: Get all URL parts based on a / seperator.
  
  @since 1.1.5
  
  @param string $uri → URI to segment
  
  @return string → segments