DEV Community

Philip Perry
Philip Perry

Posted on • Originally published at programming-decoded.com on

4 2

Review of book “PHP 7 Data Structures and Algorithms”

I choose to read this book on PHP 7 Data Structures and Algorithms written by Mizanur Rahman because I wanted to get a better idea about computer science topics like algorithms and thought it would be good to learn with a programming language I’m familiar with. However, the book also helped me gain a better knowledge for instance on how arrays in PHP work. A lot of data structures can actually be implemented with PHP arrays thanks to their flexibility although in many cases one is better served with classes found in the Standard PHP Library (SPL).

I especially liked the chapter on “Applying Recursive Algorithms” as it came with a number on practical examples on how to for instance create a menu using a recursive function.

It was interesting to read about the different kind of sorting algorithms and exploring search options. The author does compare the performance gains between different algorithms, but I was missing examples on when to use which.

I now have a basic understanding of what linked lists, heaps, graphs, trees and other data structures are and using various algorithms for faster sorting, etc. The book went into quite some detail, so I skipped a lot of it, but if necessary I’ll know where I can find the code.

On the whole, this is a good book for PHP developers who want to learn more about computer science topics or who already know about them, but want to get some idea how to best implement them with PHP. At some point I’ll probably grab another, more general, book to deepen my knowledge about data structures and algorithms though.

Hostinger image

Get n8n VPS hosting 3x cheaper than a cloud solution

Get fast, easy, secure n8n VPS hosting from $4.99/mo at Hostinger. Automate any workflow using a pre-installed n8n application and no-code customization.

Start now

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay