Skip to content

Tag: php

Using empty() for Cleaner PHP Conditions

Learn how to simplify PHP conditionals by using the empty() function to check for falsy values. Discover best practices for combining multiple conditions in an if statement to improve readability and control flow in your PHP code.

PHP 8.2: null, false, and true as stand-alone types

PHP 8.2 introduces a new feature that allows you to use null, true, and false as stand-alone types for function arguments and return values. This means you can be more explicit with your type hints and make your code easier to understand for other developers.

Create a Discord Bot Using Asynchronous PHP in 4 steps

Intro The landscape right now for Discord bots is filled with python and javascript. These work well but what about our beloved PHP? There is…