Name: Anonymous 2019-12-16 8:59
Create a Multi-dimensional array:
PowerShell will automatically number the array elements on an X-Y grid starting at 0.
These are actualy 'Jagged' arrays because the dimensions of each row can be a different size. This is very cost-effective storage.
PS C:\> $MultiArray = @(
("cats","dogs","ravens"),
(40,50,60)
)
PowerShell will automatically number the array elements on an X-Y grid starting at 0.
0 1 2
0 cats dogs ravens
1 40 50 60
PS C:\> $MultiArray[0][2]
ravens
These are actualy 'Jagged' arrays because the dimensions of each row can be a different size. This is very cost-effective storage.