cochambre on 06/30/06
Last Edited at 06/30/06 01:36pm
function borrarTodo($raiz){ if($objs = glob($raiz."/*")){ foreach($objs as $obj) { is_dir($obj)? borrarTodo($obj) : unlink($obj); } } rmdir($raiz);}
Report this snippet Tweet
Comment:
You need to login to post a comment.