Skip to main content

New answers tagged

1 vote

Basename of the root directory: why does it return the root directory itself?

Certainly / is a leading directory component and has not been removed. ... php's basename() function returns the empty string for that case. Frame challenge: how about something like /path/to/some/...
muru's user avatar
  • 73.8k

Top 50 recent answers are included