Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Multi-dimensional arrays

Name: Anonymous 2019-12-16 8:59

Create a Multi-dimensional array:

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.

Name: Anonymous 2019-12-16 23:19

array my anus

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List