is this 3 Dimensional array? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

is this 3 Dimensional array?

$people = array('online'=>array('David'=>array("27","25"), 'Amy'), 'offline'=>array('John', 'Rob', 'Jack')); echo $people["online"]["David"][1];

26th Apr 2020, 7:23 AM
U. A. Divyanganee Sandarekha
U. A. Divyanganee Sandarekha - avatar
3 Answers
+ 3
Yes
26th Apr 2020, 8:29 AM
Akshay Harshora
Akshay Harshora - avatar
0
Yes, you can call this a three dimentional array. But conventionally, more than 2 dimention array is called multi-dimentional array.
8th May 2020, 5:28 AM
Ashutosh Nigam
Ashutosh Nigam - avatar