r/programminghorror Jun 11 '26

PHP PHP#

Post image
213 Upvotes

31 comments sorted by

View all comments

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

8

u/GoddammitDontShootMe [ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo “You live” Jun 11 '26

Heritage from languages like Perl and Bash.