Sobasically, theideaofanarrayreallyis a waytocompartmentalizedinformationordatasoyoucankeepitinonespaceagainwhenyoustartcoding.
Oneoftheissuesthatyou'regoingtorunintoisjustbeingabletomentallykeeptrackofeverythinggoingonandthenbeingabletocodein a simplisticawayaspossibleinordertoaccessthedatathatyouneedagain.
That's onereasonthatyouwoulduseanarrayversussimplyhaving a wholebunchofvariables, youknowinsteadofhavingdollarsign.
Name $1 sign.
Name $2 signnamed $3 signnamedfour.
Soonandsoforth.
Youcancreateanarraysimplyofnamesandthenhaveallthosevalueswithoutthatarray, rightthatmakeslife a loteasier.
Well, thesameistruewith a multidimensionalarrayofwhatifyouwanttobeabletocontain a raisewithinanarraytomakeiteasiertoaccess.
Butwithinthatarrayofclothingtypes, wehavetopsandsotopsislongsleeve T shirt, sweater, andthenwehavebottoms, pants, shorts, skirt.
Sotheideaisthatwehaveonearraytocontainthedifferenttypesofclothingthatwehave, butthen, withinthatarraywehavedifferentotherorraiseinordertobe a bitsortthedifferenttypes.
Sowehavetops.
Wehavebottoms, wecanhavealldifferenttypesofthings, andsothismakesit a loteasierwhenwe'recoding.
Sowhenyou'relookingatthesearraysandwhenyou'relookingatmultidimensionalarrays, youdowanttobalancetheeaseofuseandmakingyourlifesimplerforbeingabletokeeptrackofinformationbyturningtheinfantathedatainto a raiseversusmakingittoocomplextothepointthatitgetstooconfusingforpeopletounderstand.
That's whatwe'regonnadoisthere s a printdoublequotationmarksandwe'redoing a print.
Andnowwiththis, whenwe'reaccessingthevaluesin a multidimensionalarray, whatwe'regoingtodoiswe'regoingtocontainitwithinthesquigglybracketsweregoingtoopenup a squigglybracket.