_splitpath in Linux _splitpath in Linux linux linux

_splitpath in Linux


Not that I'm aware, no. What I'd do is:

  • Run the path through realpath(), to make it canonical
  • Just split it on the directory separator, i.e. the / character


Use dirname() and basename().