Possible Duplicate:
How do I recursively delete a directory and its entire contents (files+sub dirs) in PHP?
I need to recursively delete a directory and subdirectories that aren’t empty. I can’t find any useful class or function to solve this problem.
In advance thanks for your answers.
From the first comment in the official documentation.
Edited rmdir to rrmdir to correct typo from obvious intent to create recursive function.