Q. How do you access the first element of the array $arr = [10, 20, 30]?
Code:
$arr = [10, 20, 30];
β
Correct Answer: (A)
$arr[0]
Explanation: Array indexing in PHP starts at 0.