<<< Previous question <<< Question ID#0606.md >>> Next question >>>
How do you define an array in PHP7?
- A)
$a = [1, 2, 3];
- B)
$a = array(1, 2, 3);
- C)
$a = (1, 2, 3);
- D) all answers
Answer
Answer: A, B
How do you define an array in PHP7?
$a = [1, 2, 3];
$a = array(1, 2, 3);
$a = (1, 2, 3);
Answer: A, B