tags:

views:

687

answers:

4

Is there any book about modern PHP (like 5.2 + mysqli or PDO) for beginners with good exercises (for ex., good exercises are in "Learning Perl", which is one of the best books for beginners)?

P.S. (considering some answers I got on IRC): it should not be a tutorial, it should not be a video tutorial, it should not be outdated (like using outdated 'mysql' extension), it should contain exercises.

A: 

I just went through wrox' PHP6, Apache, MySQL. Very nice book, which takes you through the process of creating 2 different projects.

peirix
This book must have one of the weirdest titles I have ever seen. I cannot imagine of what PHP 6 features it talks about. At the time it was written PHP 5.3 was far away. And boy, PHP 5.3 has lots of new features.
Ionuț G. Stan
Yeah, I know. I went through it using PHP 5.2.5 without any problems...Not sure why they went for version 6.
peirix
+2  A: 

O'Reilly's Learning PHP 5

The book begins with an introduction to PHP, then moves to more advanced features: language basics, arrays and functions, web forms, connecting to databases, and much more. Complete with exercises to make sure the lessons stick, this book offers the ideal classroom learning experience whether you're in a classroom or on your own.

altermativ
A: 

Just a note, if you intend to use a particular framework, you may want to check out books on those frameworks first then move on to read more on PHP language itself. This could help you get started with creating something quickly as you dabble more with the language itself.

KahWee Teng