Format string

suggest change
$hash = @{ city = 'Berlin' }

$result = 'You should really visit {0}' -f $hash.city
Write-Host $result #prints "You should really visit Berlin"

Format strings can be used with the -f operator or the static [String]::Format(string format, args) .NET method.

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents