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

Leave a Comment

All fields are required. Your email address will not be published.