Accessing an Array

To access an item in an array we can use an index.

$ArrayList = @('item 1', 'item 2', 'item 3')
$ArrayList [1]
item 2
PowerShell
Array

Comments