InterviewSolution
Saved Bookmarks
| 1. |
In PHP, if $a represents an array with numeric indices, how is the first element accessed?(a) $a[1](b) $a[0](c) $a.1(d) $a.0 |
|
Answer» Correct answer is (b) $a[0] Best explanation: If $a represents an array with numeric indices, its elements are accessed as $x[0], $x[1], and so on. In general terms, each element at the position i is accessed and used as $a[i – 1]. |
|