PHP - Arrays
Which of the following is the correct syntax to create an indexed array with the elements 10, 20, and 30 in PHP?
$numbers = array(10, 20, 30); uses array() correctly. Options B, C, and D use invalid separators or brackets.$numbers = array(10, 20, 30); [OK]15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions