PHP Cookbook by Adam Trachtenberg, David Sklar This errata page lists errors outstanding in the most recent printing. If you have technical questions or error reports, you can send them to booktech@oreilly.com. Please specify the printing date of your copy. This page was updated August 25, 2006. Here's a key to the markup: [page-number]: serious technical mistake {page-number}: minor technical mistake : important language/formatting problem (page-number): language change or minor formatting problem ?page-number?: reader question or request for clarification Confirmed errors: Note: There was a printing problem with page 442 in the [1/04] printing of the book. The correct page 442 can be found here - http://examples.oreilly.com/9781565926813/ch17_442.pdf (2) Table 1-1; The escape sequences \{ \} \[ \] are incorrect. [97] 1st full sentence at top of page; The code shown finds only the value of the largest element, not the index as advertised. Additionally, it takes O(n log n) time, but it takes only O(n) time to find the largest element and its index using a simple algorithm: $ind = 0; for ($i = 1; $i < count($array); $i++) if ($array[$i] > $array[$ind]) $ind = $i; // $ind now contains the index of the maximum element