Q26
What will be the output of the following PHP code ?
A.
Array ( [0] => 0 [1] => 1 [2] => 2 [3] => 3 [4] => 4 [5] => 5 )
AnswerB.
Array ( [0] => 0 [1] => 0 [2] => 0 [3] => 0 [4] => 0 [5] => 0 )
C.
Array ( [0] => 5 [1] => 5 [2] => 5 [3] => 5 [4] => 5 [5] => 5 )
D.
Array ( [0] => 0 [5] => 5 )
Answer: Option A
Solution
Answer: Option A
Solution:
The range() function creates an array containing a range of elements.