What is the difference between the functions unlink and unset?

Answer Posted / rajan vardawaj

unlink() is a function for file system handling. It will
simply delete the file in context. unset() is a function for
variable management. It will make a variable undefined.

Is This Answer Correct ?    6 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Tell me what are the different types of errors in php?

517


Why do we use csrf token?

519


What are the advantages of object-oriented programming in php?

507


How can you declare a constant variable in php?

567


What are the 3 scope levels available in php and how would you define them?

514






Which function you can use in php to open a file for reading or writing or for both?

555


Tell me how can we determine whether a variable is set?

510


Explain me what are the 3 scope levels available in php and how would you define them?

736


How to remove a file?

612


What is the purpose of a query?

511


What is the main difference between asp net and php?

532


What is helper function?

512


What is an operator in php?

576


What is a php array?

498


What is the difference between the include() and require() functions?

879