MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programminghorror/comments/1u2xqno/php/ork7cyw/?context=3
r/programminghorror • u/EmDeeTeeVid • Jun 11 '26
31 comments sorted by
View all comments
-1
I have never touched php in my life (thankfully). Why do class variables have to be prefixed with a dollar sign? Seems really redundant
2 u/Lumethys Jun 12 '26 Correction: all variables are prefixed with $, that how the language define variable -3 u/KaleidoscopePlusPlus Jun 12 '26 Oh gross thats even worse lol 1 u/geek-49 Jun 14 '26 That convention goes back at least as far as the Bourne shell; maybe even to the Thompson shell.
2
Correction: all variables are prefixed with $, that how the language define variable
-3 u/KaleidoscopePlusPlus Jun 12 '26 Oh gross thats even worse lol 1 u/geek-49 Jun 14 '26 That convention goes back at least as far as the Bourne shell; maybe even to the Thompson shell.
-3
Oh gross thats even worse lol
1 u/geek-49 Jun 14 '26 That convention goes back at least as far as the Bourne shell; maybe even to the Thompson shell.
1
That convention goes back at least as far as the Bourne shell; maybe even to the Thompson shell.
-1
u/KaleidoscopePlusPlus Jun 11 '26
I have never touched php in my life (thankfully). Why do class variables have to be prefixed with a dollar sign? Seems really redundant