Yes, completely off-topic, and doesn’t help the original poster’s question at all. But since you picked out one single line of my post, please re-read the last 3 words of the sentence above it:
Here’s a nice one-liner debug if you are just getting started:
Yes, my example did not include strict types, but if someone doesn’t know how to create an anchor tag I can guarantee they aren’t either.
I’d venture to bet that 98%+ of existing PHP code would break with it declared (especially since it wasn’t added until 7.0.0). I love the fact that PHP doesn’t force type checking.
I know 5.x is end-of-life, but many shared hosting providers are still using it. I’m not condoning it, just stating a fact.
I’ve used a similar debug function (that doesn’t use echo and is usable for multiple output formats) for decades (PHP3) and have been a technical editor for multiple PHP books. Sometimes a quick non-strict one-liner beats a half-page of strict debug function, especially for a beginner.
I always found it ironic that the declare strict types uses = 1 when it’s obviously a boolean