What is the difference between the functions unlink and unset?

Answer Posted / shilpa yogesh agrawal

The function unlink() is to remove a file, where as unset()
is used for destroying a variable that was declared earlier.
unset() empties a variable or contents of file.

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How come the code works, but doesn’t for two-dimensional array of mine?

609


What is php array function?

547


Is php secure?

540


Tell me which function gives us the number of affected entries by a query?

527


Which is better wamp or xampp?

547






How can I make a script that can be bilingual (supports english, german)?

599


What are the advantages of triggers in php?

479


How do I stop a php script?

513


Explain the difference between php4 and php5.

566


what does this symbol mean in php?

624


What are php magic quotes?

519


Why php is used?

611


What is difference between session_unset and session_destroy?

516


Why do we use query?

509


What is the difference between pop3 IMAP and MAPI?

643