PHP variable example start with $ but could anyone explain what's mean by $ double dollar sing ??sorry for RIP english 😁 | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

PHP variable example start with $ but could anyone explain what's mean by $ double dollar sing ??sorry for RIP english 😁

double dollar sing..!!

3rd Dec 2017, 10:46 AM
Arnab Bhattacharya
Arnab Bhattacharya - avatar
2 Answers
+ 8
for example <?php $yay = 'wow'; $wow = "awesome"; echo $yay; ?> the output will be awesome ..... when you echo $yay it'll use 'wow' as the next dollar sign variable name which is 'yay' variable value and because you have a variable named 'wow' , 'awesome' will be printed....... hope you understand what I'm saying....😅
3rd Dec 2017, 11:07 AM
Leon lit
Leon lit - avatar
+ 1
thnx guys
3rd Dec 2017, 1:19 PM
Arnab Bhattacharya
Arnab Bhattacharya - avatar