PHP How to remove last part of a path
<p>I have a path like this:</p>

<p><code>parent/child/reply</code></p>

<p>How do I use PHP to remove the last part of the path, so that it looks like this:</p>

<p><code>parent/child</code></p>

<p>Thanks!</p>
