What is the difference between the functions unlink and unset?

Answer Posted / suprita pandey

Unlink() :-remove file from server.
unlink(' /path/file.phtml');

Unset() :-remove the variable.
unset($variableName);

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What Is a Persistent Cookie?

617


How do I sort numbers in php?

542


How the values are ordered in an array?

577


What are the main error types in php and how do they differ?

832


How to download files from an external server with code in php?

493






how to track user logged out or not? when a user is idle?

533


What is __ construct in php?

543


How to know user has read the email-php?

497


What are the differences between php constants and variables?

513


How can you submit a form without a submit button?

529


How can you increase the maximum execution time of a script in php?

521


What is a query give example?

525


What is array and function?

535


Is laravel better than codeigniter?

553


What the difference between the 'bitwise and' operator and the 'logical and' operator?

524