This category is all about writing clean, modern PHP for real web applications. You will find guides that cover everything from basic syntax and functions to object oriented programming, design patterns, and working with external APIs. Each tutorial focuses on practical examples you can drop into projects right away, such as handling forms safely, organizing your code into reusable components, and structuring apps so they are easy to extend later.

I also dig into everyday developer concerns like debugging, logging, and error handling so you can track down problems quickly in production. Articles highlight common security mistakes, show you how to avoid them, and walk through performance tips that keep your PHP code running fast under load. Whether you are maintaining legacy sites or starting fresh with a new project, this PHP category is designed to help you write code you are not embarrassed to deploy.

Count Non-Empty Array Values

Counting the elements in an array is quite simple. The $counter variable will now contain the value of 3. However, if your array contains empty values like the following array it would still return 3. This of course would be problematic in some situations of your script. In order to get the accurate count, we…

What Is A Variable?

So what is a variable you may ask? A variable allows you to store values and expressions. What does that mean exactly? Let’s imagine you are writing a script for a client with some certain HTML that appears numerous times throughout your script. Now you can simply type out this HTML every single time or…