The unlink() function used to destroy the file.
Example
if(file_exits("abc.txt")){
unlink("abc.txt");
echo "file has been destroyed";
}else{
echo "file not found";
}
Coderraj is the global online platform and circle for programmers to learn, communicate, share their knowledge and growth their careers.
Copyright ©2022 coderraj.com. All Rights Reserved.