Answers for "advenge delete folder sub folders with 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 "advenge delete folder sub folders with php"

Browse Popular Code Answers by Language