Just test the code as below:

 

代码
$uri = substr(request_uri(), 1, strlen(request_uri()));
$uri_array = array();
if(!($path = drupal_lookup_path('source', $uri))) {
$uri_array = explode('/', $uri);
}
else {
$uri_array = explode('/', $path);
}

var_dump($uri_array);

 

Have fun!

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-05-27
  • 2021-12-05
  • 2021-06-01
  • 2021-10-17
  • 2021-09-13
  • 2022-12-23
猜你喜欢
  • 2022-02-03
  • 2022-12-23
  • 2021-12-16
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案