Errata
The errata list is a list of errors and their corrections that were found after the product was released. If the error was corrected in a later version or reprint the date of the correction will be displayed in the column titled "Date Corrected".
The following errata were submitted by our customers and approved as valid errors by the author or editor.
Color key: Serious technical mistake Minor technical mistake Language or formatting error Typo Question Note Update
Version | Location | Description | Submitted By | Date submitted | Date corrected |
---|---|---|---|---|---|
Printed | Page 30 Case Switching |
In the following code, there shouldn't be a space between the 2 equals signs - |
Anonymous | ||
Printed | Page 49 2nd to last paragraph in Escape Sequences section |
should read: |
Anonymous | ||
Printed | Page 68 1st code sample |
The comment in the following code sample is wrong |
Anonymous | ||
Printed | Page 69 The output for the array_shift() example |
In the output of the example, it includes "Danny" - it should not. |
Anonymous | ||
Printed | Page 83 First code sample |
The fourth line |
Anonymous | ||
Printed | Page 83 5th paragraph |
In the second example for the '===' operator, there are two if-statements and |
Anonymous | ||
Printed | Page 87 9th paragraph |
As an example of operator associativity, the book uses the example of a make-believe |
Anonymous | ||
Printed | Page 92 asin() description |
"essentially reversing the operation of sine()" |
Anonymous | ||
Printed | Page 93 bindec() description |
"print decbin("10000"); // 16" |
Anonymous | ||
Printed | Page 94 ceil() description |
"nothing will happen" should be |
Anonymous | ||
Printed | Page 94 connection_status() description |
"2 if the connection has been aborted" should be |
Anonymous | ||
Printed | Page 97 dechex() definition |
The dechex() function converts a decimal number into a binary number. |
Anonymous | ||
Printed | Page 102 htmlentities function |
html_entities() should really be htmlentities() |
Anonymous | ||
Printed | Page 102 hexdec() example |
"print hexdec(e8); // 232" should be |
Anonymous | ||
Printed | Page 102 Function reference: html_entities() |
html_entities() should be: htmlentities() |
Anonymous | ||
Printed | Page 106 number_format() function, last example |
echo "Total charge is $", number_format($total, 2, ".", ","), " Euros"; |
Anonymous | ||
Printed | Page 110 Table 7-2 |
"Parameter is a positive integer" |
Anonymous | ||
Printed | Page 125 Final code example |
Under the heading ucwords(), the final line of the example |
Anonymous | ||
Printed | Page 125 ucfirst() description |
"$a = strtoupper($string);" should be |
Anonymous | ||
Printed | Page 130 1st line of code sample |
"class dog {" |
Anonymous | ||
Printed | Page 146 Last text paragraph |
The line: |
Anonymous | ||
Printed | Page 186 Last line of sample code at top |
The second </body> tag should be </html> instead. |
Anonymous | ||
Printed | Page 188 First code example |
In the first two echo commands, the closing anchor tag </A> |
Anonymous | ||
Printed | Page 196 Second paragraph under "file_get_contents() and file()" section |
The first sentence reads: "The file_get_contents() function opens $varname..." It |
Anonymous | ||
Printed | Page 237 Table 15-4 |
The fourth example down in Table 15-4. The result in the right hand coloumn states |
Anonymous | ||
Printed | Page 240 Sub Section: Storing Matched Strings - second code example |
Last line of code example reads: |
Anonymous | ||
Printed | Page 296 code & 2nd paragraph |
Code example and text are inconsistent. |
Anonymous | ||
Printed | Page 298 First paragraph |
The first sentence reads "The headers_sent() takes no parameters,..." It should read |
Anonymous |