I have this array:
$server = @("value 1", "value 2")
and this array, that will be a part of a table:
$HtmlHeader= @"
<tr>
<th class="vcenter" colspan="5">$server[$i]</th>
</tr>
<tr>
<th class="colnames">Nome</th>
<th class="colnames">Dimensione (MB)</th>
<th class="colnames">VM</th>
<th class="colnames">Stato VM</th>
<th class="colnames">Data Creazione</th>
</tr>
"@
but the output is:
value 1 value 2[1]
and
value 1 value 2[2]
How can I fix it, the second array is part of a for cycle and $i
is defined in that.