Use PHP isset() to check whether a variable or array key exists and is not null, and understand when empty(), ??, or array_key_exists() is the better fit.
Check whether a PHP string contains a value with str_contains(), use strpos() safely on older PHP versions, and handle case sensitivity without false positives.
Use PHP implode() to join array values into strings, choose the right separator, handle associative arrays, and avoid the edge cases that trip people up.
PHP 8.6 is scheduled for November 19, 2026. Here are the confirmed features already landed, the accepted RFCs still pending, and the proposals still worth watching.
Pest 4 lands with first-class browser testing (Playwright-powered), smoke & visual regression checks, test sharding, faster type coverage, and small but handy CLI/arch tweaks. Here’s what’s new and how to upgrade from Pest 3.
PHP 8.5 shipped on November 20, 2025. Here are 15 useful features and changes, from the pipe operator and URI extension to clone() updates and fatal error backtraces.
Discover how Pest 3 simplifies architecture testing with pre-configured presets, making it effortless to enforce best practices and maintain code quality in your projects.
Learn what’s new in Pest 3: architecture testing presets, mutation testing, and Team Management, plus how to upgrade from Pest 2 to Pest 3 with composer update.
Sort arrays in PHP with sort(), rsort(), asort(), arsort(), ksort(), krsort(), and usort(), and choose the right function for indexed or associative arrays.