How to use Filesystem delete in PHP

In this article I am going to explain about delete function in PHP.
  • 1494

PHP delete() function

PHP does not have any function like delete. Instead of delete function , you can use unlike function for delete operation.

Syntax of unlike function


Parameters in unlike function

It has only one parameter:

Parameter Description
filename Here you define a name of a file.

Example of filesystem unlike function





$filename = "C:\wamp\www\Dinesh\DotNetBookZero11.pdf";


echo "File is deleted";






delete function.jpg

You may also want to read these related articles :

Ask Your Question 

Got a programming related question? You may want to post your question here

Programming Answers here


More Articles

© 2020 DotNetHeaven. All rights reserved.