PHP - Arrays
Identify the problem in this PHP code:
$arr = [1, 2, 3]; echo count($arr[3]);
$arr = [1, 2, 3]; echo count($arr[3]);
$arr[3], but the array has indexes 0,1,2 only.$arr[3] returns NULL, so count(NULL) causes a warning or error.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions