- $var and $$var both are different variables
- $$var is variable of variable $var
- If we use $$var that means value of variable $var also treat as variable
<?php $var="html"; $$var="php"; echo $var."</br>";//simple variable display the assign value echo$$var."</br>";// variable of variable display the assign value echo$html."</br>";//value of variable $var treat as variable because variable of variable ?>
html //result of simple variable $var php //result of variable of variable $$var php //result of value of a variable $var who treat as variable
Hello, My Name is pradip parker . I am a Web Developer, Professional Blogger from India. i love and like web designing and developing, i have two year of experience in programming and developing I am the founder of programmingconcept. I started this blog in 2017 to for help developers by providing easy,small and best tutorials.