Reading this fascinating question made me remember a code snippet I stumbled across a few weeks ago; it gave me quite a few minutes of confusion until I figured out why it works, maybe it will be interesting for others as well.
<?php
http://example.com/some-article
$items = get_items();
// etc.
Obviously the programmer wanted to add an explanatory link as a comment before the code block, but forgot to add the //
to the beginning. Nevertheless, the code works fine. Can you tell why?
The http:
is a goto label, and the rest of the line is commented out.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With