Page 2

Manipulate strings in PHP using the extremely useful str_replace() function.
Modified on Sep 19, 2023

Let's step up your code with a safer way of coding using PHP's Enumerations, or Enums. With this guide, you'll know everything there is to know about them.
Modified on Jul 8, 2023

Use your Mac as an ideal PHP environment thanks to the power of Laravel Valet. You can finally say goodbye to Docker!
Modified on Aug 12, 2023

Explore the world of PHP debugging with var_dump(), and Laravel's friendlier alternatives, dump() and dd(). Much charm, such useful!
Modified on Sep 6, 2023

Whether PHP is dead is a matter of numbers, not opinions. I will provide you with essential statistics that will lead you to make better decisions.
Modified on Sep 19, 2023

Take your code to the next level, thanks to exceptions. Handle errors in a more graceful way within try and catch blocks.
Modified on Nov 23, 2022

Whether PHP is dead is a matter of numbers, not opinions. I will provide you with essential statistics that will lead you to make better decisions.
Modified on Jun 18, 2023

Improve your projects by leveraging the power of GPT, the famous language model, using PHP and OpenAI's REST API.
Modified on Nov 7, 2023

PHP 8.3 was released on November 23, 2023, and as usual, you need to be up to date with new features and breaking changes for easier transitions.
Modified on Nov 23, 2023

There are multiple ways to check if an array is empty. Let me tell you about each of them and why and when you should use them.
Modified on Nov 2, 2023 • Audio available

Learn why and how to fix "Methods with the same name as their class will not be constructors in a future version of PHP" warnings.
Modified on Nov 23, 2022

Learn why the "Using $this when not in object context" error happens, and let me show you the only way to fix.
Modified on Dec 14, 2022

Debugging requires dissecting everything. Here's a list of all the one-line of code built-in ways to print arrays in PHP (and even Laravel-specific helpers).
Modified on Jun 24, 2023

Learn why the "Invalid argument supplied for foreach()" warning happens, and let me show you multiple ways to fix it.
Modified on Nov 23, 2022

To keep getting better with PHP, you should subscribe to as many quality blogs as possible. In this article, I share the ones I often read myself.
Modified on Oct 7, 2023