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:
pare
dirname()