PHP: The Good Parts
Delivering the Best of PHP
Publisher: O'Reilly Media
Final Release Date: April 2010
Pages: 178

Get past all the hype about PHP and dig into the real power of this language. This book explores the most useful features of PHP and how they can speed up the web development process, and explains why the most commonly used PHP elements are often misused or misapplied. You'll learn which parts add strength to object-oriented programming, and how to use certain features to integrate your application with databases.

Written by a longtime member of the PHP community, PHP: The Good Parts is ideal for new PHP programmers, as well as web developers switching from other languages.

  • Become familiar with PHP's basic syntax, variables, and datatypes
  • Learn how to integrate the language with web pages
  • Understand how to use strings, arrays, and PHP's built-in functions
  • Discover the advantages of using PHP as an object-oriented language
  • Explore how PHP interacts with databases, such as SQLite and MySQL
  • Learn input- and output-handling best practices to prevent security breaches
Table of Contents
Product Details
About the Author
Recommended for You
Customer Reviews


by PowerReviews
oreillyPHP: The Good Parts

(based on 2 reviews)

Ratings Distribution

  • 5 Stars



  • 4 Stars



  • 3 Stars



  • 2 Stars



  • 1 Stars



Reviewed by 2 customers

Displaying reviews 1-2

Back to top

(13 of 15 customers found this review helpful)


Not up to O'Reilly standards at all...

By James K

from Carmel, IN

About Me Designer, Developer


  • None


  • Encourages Bad Practice
  • Too basic
  • Too many errors

Best Uses

    Comments about oreilly PHP: The Good Parts:

    I started reading the book because I'm working in PHP a little but am "self-taught" on it. I wanted something like Crockford's similarly titled JavaScript: The Good Parts, to cover both the basics of PHP that I may not have encountered in my self-taught tinkering, as well as the "cool tricks" that seasoned developers have learned.

    I was disappointed to find that this book contained neither. Even the basics covered are
    extremely basic at BEST.

    I got to the section on "getters and setters," which, instead of covering the get and set magic methods that let you define actual OOP style getters and setters, the author describes adding methods that just happen to be called setx and getx and have no link to a property x other than name. Bizarre. From this I concluded that the author himself does not understand the basics of PHP OOP.

    From that point (I had read the entire text to that point), I skipped ahead to the chapter at the end titled "Advanced Goodness," only to find even more very basic stuff covered under the guise of "advanced" - i.e. regex, SimpleXML, and *gasp* IDEs and popular PHP sites.

    I'll be checking out PHP Hacks, and the PHP Cookbook next. Hopefully one or both of them will reflect the quality that I normally associate with O'Reilly...

    (4 of 8 customers found this review helpful)


    Alot to say in too few ages.

    By Cranium Slows

    from Austin, Tx

    About Me Developer, Sys Admin

    Verified Reviewer


    • Accurate
    • Easy to understand
    • Helpful examples
    • Well-written


    • Not comprehensive enough

    Best Uses

    • Intermediate
    • Student

    Comments about oreilly PHP: The Good Parts:

    This book tries to bring you from 0 to 60 in 148 pages. As a result the first half of the book was not of much value, and if I was a newbie I do not believe the second half would have been worth much to me.

    That being said the book is well written and does cover things in a way that is entertaining. If you are a novice or an expert and have 20 bucks laying around this is a great resource. I'd also suggest the PHP Pocket guide if you want a decent compendium of built in PHP functions.


    Good book but too short for everything it tries to cover.

    Displaying reviews 1-2

    Back to top

    Buy 2 Get 1 Free Free Shipping Guarantee
    Buying Options
    Immediate Access - Go Digital what's this?
    Ebook:  $23.99
    Formats:  APK, DAISY, ePub, Mobi, PDF
    Print & Ebook:  $32.99
    Print:  $29.99