New statement in PHP 5.3 “goto”

Thank goodness! I had been hoping for this for a long time… As someone who started out as a kid with BASIC and GW-BASIC and QUICKBASIC and then VISUAL-BASIC, I was used to the “GOTO” statement, which fit into a programming logic where the code was divided into “routines” and “sub-routines” and, depending on certain conditions that occurred, you could send execution back to certain sections of code to be run with the “GOTO” statement. Until now in PHP you had to resort to another “workflow”; well, now they have figured that perhaps the traditional “GOTO” wasn’t so bad, and they have re-incorporated it. I think I will definitely use it in several situations!

http://www.php.net/manual/en/control-structures.goto.php
What's the worse thing that could happen if you use goto?

Be First to Comment

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.