3 ms·
> Where’s PHP’s equivalent of let/const? Olde PHP used to declare global variables for all http get/post params, so "linter rules" basically said no undeclared
by ryanianian 6y ago
> Where’s PHP’s equivalent of let/const?
Olde PHP used to declare global variables for all http get/post params, so "linter rules" basically said no undeclared globals.
Of course the linter was a sternly-worded comment in the first <? block.
Then we had the $POST array and $GLOBALS which, iirc, are considered bad-practice to interact with directly.