July 17, 2021

PHP References explained

PHP references are another name to access a value which is already associated with another variable. They are nothing like pointers in C and you should not confuse it with them. PHP references are...

Read

July 13, 2021

PHP match expressions

PHP 8 introduced match expressions in addition to switch statements. In this article, we will see how a match expression in PHP differs from a PHP switch statement. First, let us see how a match...

Read

July 3, 2021

How to learn any web framework easily

Learning a web framework can be difficult, even if you have been programming for a long time. There are new terminologies to learn, new directory structures to understand, new tools to acquire, new...

Read

July 5, 2020

How we solved the mystery of a mammoth size history table in MySQL database

While performing regular audit at my company, I noticed that one of the databases is using more disc space than expected. Once I drilled down to the table levels, it turned out that only a single...

Read

December 3, 2019

Automate repetitive tasks with Laravel Macro

Laravel macros are a way to extend Laravel core classes, without writing our own class. In other words, it allows us to add new methods to the core Laravel classes. In this discussion, we will look...

Read

October 20, 2019

Copy a directory recursively in php (using Standard PHP Library)

Last time, we discussed how to remove a non empty directory in php using Standard PHP Library (SPL). This time we will learn how to copy a directory recursively in php using SPL. By recursively, I...

Read