Join arrays together
12/01/2013 12:50
#Joining arrays in powershell, use + operator
$a=(1,2,3)
$b=(4,5,6,7)
$c=($a, $b)
$d=$a+$b
Write-Host "array c, length is 2"
$c
Write-Host "array d, length is 7"
$d
Write-Host "============"
array c, length is 2
1
2
3
4
5
6
7
array d, length is 7
1
2
3
4
5
6
7
============