I have a path like this:
parent/child/reply
How do I use PHP to remove the last part of the path, so that it looks like this:
parent/child
dirname($path)
And this is the documentation.
1.4m articles
1.4m replys
5 comments
56.8k users