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
What is == and === in php?
How to read a file in php?
How can we execute a php script using command line?
What is meant by public, private, protected, static and final scopes?
Explain the types of functions for Splitting String?
Tell me what is the use of explode() function?
Php error constants and their descriptions
Tell us how can we display the output directly to the browser?
What is the difference between rest and soap?
Explain about the connective abilities of the PHP?
What is different between software and app
Tell me what is the difference between unset() and unlink()?
List some array functions in php?
What is $this in php?
Who is the father of php and what is the current version of php and mysql?