PHP Master Write Cutting-Edge Code
Found a mistake that’s not listed here? You clever monkey! Contact us to let us know.
We’ll try to get it fixed for the next print run.
Corrections and Typos
PHPPRO1
- p.3 Line 14 "You might also notice a variable called $thisin ..." should read: "You might also notice a variable called $this in ..."
- p.9 Line 12 "In the global namespace, we can say shipping/Courier" should read: "In the global namespace, we can say shipping\Courier"
- p.14 Line 6 Superfluous "\" at end of line
- p.56 Line 1 There is a missing SQL statement in the code block: $sql = 'SELECT name, description, chef FROM recipes WHERE id = :recipe_id'; $stmt = ...
- p.61 Line 6 Missing column type. The line should read: select_type: Indicates what kind of SELECT was run
- p.61 Line 9 The entry in the list labelled "rows" has an incomplete corresponding definition. It should read: "This is really important because it tells us how many rows MySQL had to look at to find our data."
- p.139 Code example Title of code example should read "excerpt", not "exception"
- p.140 Code example Title of code example should read "excerpt", not "exception"
- p.160 LIne 10 Superfluous "-" after "!-f"
- p.223 Line 10 "naamespace" should be spelt "namespace"
- p.226 Profiling section The word "Profiling" wrongly appears at the start of the sentence, "So you've done ..."
- p.227 Line 3 The word "Profiling" is missing from the beginning of the sentence, "is the act of ..."
- p.259 Line 5 The phrase "in Chapter 4" appears twice
- p.280 Line 15 Item no. 3, "-t": "assumes -n 50000" should read "assumes -t 50000"
- p.347 Line 22 "While SplTempFileObject takes a path, SplTempFileObject takes a memory limit" should read: "While SplFileObject takes a path, SplTempFileObject takes a memory limit"
- p.351 Line -5 (from bottom of page) SplMinHelp should read SplMinHeap
- p.355 Line 11 The phrase "or not" should be deleted after the phrase "Whether or not you want to spend time socializing with a group of people you don't know"
