Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

Basics of 'Array'

$
0
0

Hi guys, 

I'm trying to understood to the powershell array. And i'm really confused.

what is the different between: 

$a = 1,2,3,4

$a = @(1,2,3,4) or $a = @{1,2,3,4} --> What is the different between '@()' and '@{}' brackets?

Or when should i use @() instead of basic $a = (1..4) ?


Viewing all articles
Browse latest Browse all 21975

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>