The Daily T -

PHP steps into the future

Finally, PHP fulfills the promises we’ve all been waiting for. PHP 5.3 includes support for the GOTO-statement, that gem of a shortcut of programming logic.  Hey, PHP, 1968 called, they want their GOTO-statement back.

For the non-programmers out there, GOTO is a line in a program that enables that program to jump to any random place in the program where you’ve put the GOTO anchor, kind of like clicking an internal link on a web page that takes you a bit further down the page. The problem with it in programming is that it is easy to use as a shortcut past good design. I’d be tempted to say GOTO has absolutely no place in a modern high level language, but maybe the problem with PHP is that it tries to be both a lower level scripting language and a higher level object-oriented language at the same time, leading to seemingly bad choices like adding GOTO, in 2009. PHP steps into the future