PHP In Easy Steps, 4th Ed

Author: Mike McGrath
Publisher: In Easy Steps
Date: April 2021
Pages: 192
ISBN: 978-1840789232
Print: 1840789239
Kindle: B08ZSV3MNH
Audience: People wanting to learn PHP
Rating: 4
Reviewer: Ian Elliot
PHP isn't a fashionable language, but this doesn't mean it isn't worth learning.

PHP most definitely is still the workhorse of the web and it is a lot better than it used to be. This book covers PHP 8 and so is up to date. It is a short introductory book so it doesn't get deep into subjects that differ in other versions of the language.

Banner

It is a paradox that the most difficult chapter is the first. With PHP this is often the way because PHP is a language that needs a full web server and an integrated language engine. Web servers that are actually encountered in the wild, like Apache, aren't easy to set up and enabling the appropriate modules takes you well beyond basic PHP skills. In other words, getting started with PHP is tougher than with other languages. This book takes a different route and makes use of the Abyss server, which is much easier to set up, but still not trivial. The chapter also goes into some details about how PHP is compiled - the JIT compiler option for example. I think the problem of getting started is difficult enough without worrying about how fast things work - time for that later.

After Chapter 1 we follow a fairly standard path though learning a language. Chapter 2 is about variables and values - all very simple, but again some more advanced material is included, sorting arrays, checking types and so on. Chapters 3 and 4 are about expressions and operators, again some more advanced things are included. Chapter 4 also introduces flow of control as part of using conditional expressions. The if and the loop both need conditional expressions.

In Chapter 5 we meet functions, which is how most of PHP is constructed even if it is nominally an object-oriented language.  Chapter 6 deals with strings and how to work with them, which is a vital skill for working with web pages. Chapter 7 introduces classes and for the PHP beginner this probably isn't necessary. PHP is strange in its approach to objects and the beginner is going to be very confused at first.

Chapter 8 returns to practical concerns with a look at file handling and the rest of the book is about how to use PHP to do things. Chapter 9 is about forms, which is a very common use of the language. Chapter 10 is about cookies and session data. Chapter 11 covers a big topic in just a few pages - using Web Services. This is mostly about processing XML.

This is a very condensed look at PHP for the more-or-less complete beginner. The explanations are clear as is the presentation with lots of helpful asides. The only problem with the book is that it might cover too much ground for the reader. Of course, if it left out some topic or another then it risks getting criticized for missing out something important - when writing a book you often cannot win! As long as you are aware that the pace is quite fast, and some of the topics are only just touched on then, there is no need to avoid this book.

 

 

To keep up with our coverage of books for programmers, follow @bookwatchiprog on Twitter or subscribe to I Programmer's Books RSS feed for each day's new addition to Book Watch and for new reviews.

Banner


Continuous Architecture In Practice (Addison-Wesley)

Author: Murat Erder, Pierre Pureur and Eoin Woods
Publisher: Addison-Wesley
Pages: 352
ISBN: 978-0136523567
Print: 0136523560
Kindle: ‎B08ZRTQGLJ
Audience: Software Architects
Rating: 3
Reviewer: Kay Ewbank

This book sets out the case for why software architecture is more important than ever, and in p [ ... ]



Assembly x64 Programming

Author: Mike McGrath
Publisher: Easy Steps
Date: November 2021
Pages: 192
ISBN: 978-1840789522
Print: 1840789522
Kindle: ‎B09FTNN4P5
Audience: Developers wanting to learn assembler
Rating: 5
Reviewer: Harry Fairhead
Assembler, why would you want to learn that!


More Reviews

Last Updated ( Saturday, 28 August 2021 )