Translation - Μετάφραση
Resources, Technical Assistance and Technology News => Translator resources => Tips on Using Computers => Topic started by: spiros on 18 Jan, 2022, 19:15:08
-
How to fix undefined array key (php 8 error)
For example if you have something like
$Datum = $review["ReviewDate"];
Change to
$Datum = $review["ReviewDate"] ?? null;
or
$Datum = $review["ReviewDate"] ?? "";
performance - PHP: Fastest way to handle undefined array key - Stack Overflow (https://stackoverflow.com/questions/16675753/php-fastest-way-to-handle-undefined-array-key)