PHP - Arrays
Which of the following correctly creates an indexed array with three elements in PHP?
$arr = ["apple", "banana", "cherry"]; uses [] with comma-separated values, which is correct. Options A, B, and C use invalid syntax for arrays.$arr = ["apple", "banana", "cherry"]; [OK]15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions