title: How to delete a folder with contents using PHP
body: <p>I need to delete a folder with contents using PHP. <code>rmdir()</code> and <code>unlink()</code> delete empty folders, but are not able to delete folders which have contents.</p>