PHP - Arrays
You want to create an indexed array of numbers from 1 to 5 in PHP without manually listing each number. Which code correctly does this?
$numbers = range(1, 5); uses range(1, 5) correctly. Options A, B, and D use invalid syntax or unsupported constructs.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions