Answers for "recursive deleting of directory in php"

PHP
2

php recursively delete directory

function removeDirectory($path) {

	$files = glob($path . '/*');
	foreach ($files as $file) {
		is_dir($file) ? removeDirectory($file) : unlink($file);
	}
	rmdir($path);

	return;
}
Posted by: Guest on July-17-2020

Code answers related to "recursive deleting of directory in php"

Browse Popular Code Answers by Language