One of my least favorite things is the behavior of undefined constants.
Use an undefined constant:
Get an exception? Nope. Get an empty string? Nope.
PHP will put the name of the constant in the rendered HTML. Arg.
Use an undefined constant:
Get an exception? Nope. Get an empty string? Nope.
PHP will put the name of the constant in the rendered HTML. Arg.