PHP How to remove last part of a path

dirname($path)

And this is the documentation.

Leave a Comment