02. July 2014
Emulating the Javascript With Statement in PHP
Javascript has a with
statement that you probably shouldn’t use. I’ve never seen it used non-jokingly in JavaScript in the past decade or so, other than the occasional clever hack. Visual Basic also has a with
statement, and I did see it used a fair bit in that realm, back in the day. In my experience it’s not something that developers are clamoring for.