---
title: "Why do we put @ symbol before any variable?"  
description: "Why do we put @ symbol before any variable?"  
author: "Anonymous User"  
published: 2011-06-13  
updated: 2020-09-20  
canonical: https://www.mindstick.com/interview/1059/why-do-we-put-symbol-before-any-variable  
category: "php"  
tags: ["php"]  
reading_time: 1 minute  

---

# Why do we put @ symbol before any variable?

@ symbol when placed before any variable will hide notices and warnings which are generated when trying to access an undefined variable.\

## Answers

### Answer by Anonymous User

@ symbol when placed before any variable will hide notices and warnings which are generated when trying to access an undefined variable.\


---

Original Source: https://www.mindstick.com/interview/1059/why-do-we-put-symbol-before-any-variable

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
