Discover how to check your version of PHP using phpinfo(), your terminal, Laravel's welcome page, or a Laravel Artisan command.
PHP 8.4 is expected to drop on November 21, 2024. Let's review the known new features and changes.
Matthias Noback explores why refactoring isn't as risky as believed, even without tests. Discover how careful programming can lower risks.
Check out FlappyPHPant, a fun Flappy Bird clone using PHP. It's a great way to learn complex programming concepts through gaming.
Manipulate strings in PHP using the extremely useful str_replace() function.
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.
Use your Mac as an ideal PHP environment thanks to the power of Laravel Valet. You can finally say goodbye to Docker!
Explore the world of PHP debugging with var_dump(), and Laravel's friendlier alternatives, dump() and dd(). Much charm, such useful!
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.
Take your code to the next level, thanks to exceptions. Handle errors in a more graceful way within try and catch blocks.
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.
Improve your projects by leveraging the power of GPT, the famous language model, using PHP and OpenAI's REST API.
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.
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.
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.
Learn why the "Using $this when not in object context" error happens, and let me show you the only way to fix.
Debugging requires dissecting everything. Here's a list of all the one-line built-in ways to print arrays in PHP (and even Laravel-specific helpers).
Learn why the "Invalid argument supplied for foreach()" warning happens, and let me show you multiple ways to fix it.
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.