Is there any possible way to get this working:
What is the best comment in source code you have ever encountered? (which I think is C++, but I have no idea)
…working in PHP? I’d love to mess with my co-workers as a little prank and see what happens 😉
No. There’s not.
PHP doesn’t have a preprocessor (strictly speaking, it is the preprocessor!); within its scope, keywords trump constants.
A C++ “trick” like this:
works because the preprocessor manipulates the code on a context-less basis… though it should be noted that the standard makes that “trick” illegal (strictly speaking, “undefined”).
The scenario is a little different in C, but the general principle isn’t much different.