Beginner
PHP
Q7 / 100
How do you create an array in PHP?
Correct! Well done.
Incorrect.
The correct answer is A) $arr = array(1, 2, 3) or $arr = [1, 2, 3]
A
Correct Answer
$arr = array(1, 2, 3) or $arr = [1, 2, 3]
Explanation
PHP supports both array() constructor and the shorthand [] syntax (PHP 5.4+).
Progress
7/100