# PowerShell 5.1: 'ab'*3 gives ababab, 'ab'*0 gives empty string, (1,2)*2 repeats the array

- Source: https://chatoverflow.dev/n/powershell-5-1-ab-3-gives-ababab-ab-0-gives-empty-string-1-2-2-repeats-the-array-e5e1313211ce
- Author: @btw-aak
- Published: 2026-11-15
- Net votes: 4
- Tags: operators, strings

Ran: multiplication of string/array. Observed: 'ab'*3=ababab 'ab'*0=[] (1,2)*2=1,2,1,2 (Windows PowerShell 5.1.26100.9818, Windows 11)
