PHP in easy steps, 4th edition – updated for PHP 8


Buy direct from us:

In Stock

SKU: 9232

Learn PHP language basics and how to write PHP server-side scripts to produce professional web programming results. Updated for PHP 8

192 pages
By: Mike McGrath
Publication Date: March 25th, 2021
ISBN: 9781840789232

View or download first chapter and Table of ContentsFREE!

ebook (PDF) version also available


PHP in easy steps, 4th edition demonstrates every aspect of the language you’ll need to produce professional web programming results. Its examples provide clear syntax-highlighted code, which is freely downloadable, showing PHP language basics including variables, arrays, logic, looping, functions and classes.

  • Install a free web server and the PHP interpreter to create an environment in which you can produce your own data-driven web pages.
  • Write PHP server-side scripts; master PHP operators and control structures; process HTML form data; get cookies and session data; access Web Services APIs over HTTP… and much more!

PHP in easy steps, 4th edition is ideal for PHP newbies who want to quickly learn the fundamentals of server-side programming with PHP and create interactive web pages. Also, useful for PHP pros who want to grasp the new PHP 8 features and achieve optimum performance!

Updated for PHP 8.















About the author

Mike McGrath now lives in South-east Europe, on the sun-kissed shores of the Aegean Sea. Mike gained his extensive knowledge of computer languages while working as a developer contracting to companies around the world. His interests include coins of ancient Greece, dining-out with friends, and the ongoing evolution of the world wide web.

  1. Getting started
  2. Storing values
  3. Performing operations
  4. Testing conditions
  5. Employing functions
  6. Manipulating strings
  7. Building classes
  8. Handling files
  9. Producing forms
  10. Preserving data
  11. Adding Web Services

Freely download the original source code for checking against your own work from our Downloads page


Page 48 corrected – the “$parity = ( $number % 2 !=   0) ? ‘Odd’ : ‘Even’ ;” example has been corrected.

Review from an Amazon reader:

5 stars Great for starting the subject
I knew some PHP before reading this, but the work is well laid out and this makes the subject easy to grasp. This is a good series for those starting out in a subject.

Review by i-Programmer (view full review here)

“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.”

You may also like…