Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save MattHodge/2aa9598d70274058a1fe to your computer and use it in GitHub Desktop.
Save MattHodge/2aa9598d70274058a1fe to your computer and use it in GitHub Desktop.
Description for 06_Blog_PSStringFormating_HashTables_DoubleDoubleQuotes.ps1
# When our string contains double quotes
$myItem = @{
name = 'Matt'
age = 29
}
$myStringBackTicks = "The user `"$($myItem.name)`" is of age `"$($myItem.age)`""
$myStringDoubleQuotes = "The user ""$($myItem.name)"" is of age ""$($myItem.age)"""
Write-Output $myStringBackTicks
Write-Output $myStringDoubleQuotes
@MattHodge
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment