Other than the usual stuff you're too close to see when you're writing (variable names wandering during an example, from $addresses to $array and back again), I found two good 'uns. "inheritence" (should be "inheritance"), and a tricky one involving interpolation.
The classic way to explain the need to bracket interpolated variables is:
$n = 12;
print "the ${n}th man"
If you leave out the curlies, you're trying to print $nth. That was the example we had in the book. Only I think the copyeditor changed it to say we were trying to print the $nth variable (i.e., $n in courier, th in roman). Um, no.
Oh the tiny strange things that my life is suddenly filled with
--Nat
PHP QC1 0 Comments More | Login | Reply /