---
title: "What is the difference between the functions unlink and unset?"  
description: "What is the difference between the functions unlink and unset?"  
author: "Anonymous User"  
published: 2012-05-04  
updated: 2020-09-19  
canonical: https://www.mindstick.com/interview/1440/what-is-the-difference-between-the-functions-unlink-and-unset  
category: "php"  
tags: ["php"]  
reading_time: 1 minute  

---

# What is the difference between the functions unlink and unset?

unlink() deletes the given file from the file system.\
unset() makes a variable undefined.

## Answers

### Answer by Anonymous User

unlink() deletes the given file from the file system.\
unset() makes a variable undefined.


---

Original Source: https://www.mindstick.com/interview/1440/what-is-the-difference-between-the-functions-unlink-and-unset

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
