Jeff Moore has some interesting thoughts on GOTO in PHP. I’ve not seen or used a GOTO since sometime in 1987 when I concluded courses in FORTRAN and Assembler. With exceptions, try/catch and while/break/continue I have a hard time seeing the value of GOTO other than to reintroduce bad habits into new PHP programmers. Or as a crutch for those coming to PHP from some version of BASIC who never learned to use GOSUB.

Comments are closed.