Advertisement

Cutting Edge

  • Peter MacIntyre
  • Brian Danchilla
  • Mladen Gogala

Abstract

This chapter will introduce the new features of PHP 5.3. These new features include name spaces, closures, the new text format known as nowdoc, and the goto statement. This final innovation is sort of a blast from the past, still as much despised as it was when the first fully procedural languages, such as Pascal, started to gain popularity among programmers. Regular use of the goto statement is still very much frowned upon; one could even argue that its use is a deadly sin among programmers. The controversy was started by the famous paper “Go To Statement Considered Harmful” (Edsger Dijkstra, 1968), and the goto statement has been considered suspect ever since. Having an option, however, is never bad. Programming is not a religion; the goals are simplicity, clarity, and efficiency. If the goto statement can help programmers reach these goals, using it makes perfect sense.

Keywords

File Information Class Context Class Animal Callback Function Class File 
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Copyright information

© Peter MacIntyre, Brian Danchilla, and Mladen Gogala 2011

Authors and Affiliations

  • Peter MacIntyre
  • Brian Danchilla
  • Mladen Gogala

There are no affiliations available

Personalised recommendations