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!
Published Saturday, October 2nd, 2010 by John Romano D'Orazio
New statement in PHP 5.3 “goto”
John Romano D'Orazio
Catholic priest incardinated in the Diocese of Rome, stationed in the Diocesan Pilgrimage Office. Fr. John is passionate about harnessing technology in service of the Church’s evangelizing mission, in a community-driven and synodal fashion. He has contributed to numerous open source projects, is the author of a Liturgical Calendar API and a Bible API, and has helped foster the growth of Open Source Catholic, a growing community of Catholic developers dedicated to building open source technology for the Church.

Be First to Comment