---
title: "How variable is declared in PHP?"  
description: "How variable is declared in PHP?"  
author: "Samuel Fernandes"  
published: 2016-09-26  
updated: 2020-09-21  
canonical: https://www.mindstick.com/interview/23061/how-variable-is-declared-in-php  
category: "php"  
tags: ["php"]  
reading_time: 1 minute  

---

# How variable is declared in PHP?

In PHP variable should starts with $ sign followed by the name of the variable. Variable name must start with alphabet or underscore and cannot start with a number. Also variable names are case sensitive.

## Answers

### Answer by Samuel Fernandes

In PHP variable should starts with $ sign followed by the name of the variable. Variable name must start with alphabet or underscore and cannot start with a number. Also variable names are case sensitive.


---

Original Source: https://www.mindstick.com/interview/23061/how-variable-is-declared-in-php

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
