Difference between unset() and unlink()

General discussion on PHP
Post Reply
jaco8683
Posts: 1
Joined: Tue Apr 24, 2018 6:36 am

Difference between unset() and unlink()

Post by jaco8683 » Tue Apr 24, 2018 6:41 am

What’s the difference between unset() and unlink() and How can we get the IP address of the client?

shas7146
Posts: 5
Joined: Fri Sep 15, 2017 11:41 am
Contact:

Re: Difference between unset() and unlink()

Post by shas7146 » Fri May 04, 2018 12:27 pm

Unset() : It is a function that is used to remove a single variable, multiple variables, or an element from an array.

Unlink(): It is also a function that is used to delete files. If you have uploaded files a file and wants to delete this file through the coding then this function is used to delete the file.

angelarichard
Posts: 1
Joined: Sat May 19, 2018 6:26 am

Re: Difference between unset() and unlink()

Post by angelarichard » Sat May 19, 2018 6:32 am

In PHP unlink() function is used for file system management and to delete some files and unset() function is used for variable management.



------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
essay writing service reviews

Post Reply