Tableaux PowerShell

De Linuxmemo.

  • Déclaration (d'un tableau vide)
$NomTableau = @()

ou avec tun typage

[String[]]$NomTableau = @()

Déclaration avec initialisation en même temps

$tab = @(1,5,9,10,6)
ou 
$tab = 1,5,9,10,6
Outils personnels