The Blog

Writing about PHP, Laravel, software architecture, and everything I learn along the way.

search
Dec 16, 2022

How to implement the bubble sort in PHP

What is bubble sort?

Bubble sort is a simple sorting algorithm that repeatedly iterates through an array, comparing adjacent elements and swapping them if they are in the wrong order. It is called "bubble sort" because the larger elements "bubble" to the top of the array as they are being sorted.

Dec 16, 2022

Learn How to Use PHP Generators for Data Iteration

A generator is a special type of function in PHP that allows you to create an iterable set of data without having to store the entire set in memory at once. This can be useful in situations where you need to work with large datasets or when you want to generate data on the fly.

Dec 14, 2022

Master These Algorithms for Success in Your Software Interview

As a software developer, you know that algorithms are a crucial part of the job. They help you solve complex problems and write efficient code and are also a common topic in software interviews. If you are preparing for a software interview, it is essential to have a solid understanding of a few key algorithms and their applications.