Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Good afternoon Chegg, It\'s me again, needing your expert input, I\'m currently

ID: 3908546 • Letter: G

Question

Good afternoon Chegg, It's me again, needing your expert input, I'm currently working with PHP, and I need some input for the following:

When it come to Arrays, depending on how data is to be organized. We already know what an array is:


-So what is an “array of arrays?”


-Why is it called that?


-Why would we need to use it?


-How is it used and how do we access the data stored in one?


-If possible give examples...


Chegg any input you can give me will be appreciated. Thank you in advance for your help.

Explanation / Answer

Array of arrays is nothing but collection of arrays into a single array. it contains all the arrays so that we will call it as array of arrays

if you want represent row and col kind of data and matrix problems in these areas we will use array of arrays

Example:

Accessing Elements :

echo $array[0][0];

it will print 10

Note: Please comment if you need any other explanations

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote