---
title: "What is the difference between $name and $$name?"  
description: "What is the difference between $name and $$name?"  
author: "James Smith"  
published: 2011-05-17  
updated: 2020-09-18  
canonical: https://www.mindstick.com/interview/933/what-is-the-difference-between-name-and-name  
category: "php"  
tags: ["php"]  
reading_time: 1 minute  

---

# What is the difference between $name and $$name?

$name is variable where as $$name is reference variable \
like $name=gim and $$name=singh so $jim value is smith.

## Answers

### Answer by James Smith

$name is variable where as $$name is reference variable \
like $name=gim and $$name=singh so $jim value is smith.


---

Original Source: https://www.mindstick.com/interview/933/what-is-the-difference-between-name-and-name

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
