What is the difference between the functions unlink and unset?

Answer Posted / prahallada

unlink() is a function for file system handling.
It will simply delete the file in context.


Unset () is used to destroy a variable in PHP. In can be
used to remove a single variable, multiple variables, or an
element from an array. It is phrased as Unset ($remove).
Also Known As: Unset Variable, Destroy Variable

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is == and === in php?

514


How to read a file in php?

533


How can we execute a php script using command line?

530


What is meant by public, private, protected, static and final scopes?

539


Explain the types of functions for Splitting String?

576






Tell me what is the use of explode() function?

548


Php error constants and their descriptions

591


Tell us how can we display the output directly to the browser?

596


What is the difference between rest and soap?

574


Explain about the connective abilities of the PHP?

608


What is different between software and app

1236


Tell me what is the difference between unset() and unlink()?

545


List some array functions in php?

510


What is $this in php?

548


Who is the father of php and what is the current version of php and mysql?

698