Professional Documents
Culture Documents
Understanding
of PowerShell
Topic
Array
How to declare or create array
Indexing and Accessing elements of
an array
How to create strong Array
Array with Operator
Properties and Methods
“An Impressive display or range of
particular type of thing” – Google
Dictionary
“An ordered series or arrangement” –
Array Google Dictionary
In Simple word it’s a collection of elements
identified by index number.
Similar of PowerShell Variables, but created
and used differently
Syntax @(……)
Array
Primary Difference
Variables stores a single element
Arrays can store multiple elements.
Array Primary Difference
Indexing Variables stores a single element
Arrays can store multiple elements.
TO Create storage typed array (array that
can contain only a particular type), cast the
variable as an array type.
Ex- $Normal.GetType()
Length
To determine how many items are in an
Properties
array, Use the length property.
Alias know as Count
Methods