I'm creating a sample legacy project for my workshop. I'm trying to include as many of the common mistakes. 50 lines in, and I already feel as dirty as a 18th century coal miner. I've seen too much.
@airtonzanon Haha, that would be fun. However, I haven't seen it in the last 10 million lines of legacy, so not even sure how to create a plausible misuse scenario. I have plenty on my list already :)
See the comic at the top of the docs here: https://www.php.net/manual/en/control-structures.goto.php
@afilina Indeed, I think I never saw this running in production.
But I already created a PR as a joke to see people's eyes bleeding hahahaha.
OMG. I think I never have accessed this docs, absolutely amazing!