PowerShell: How do I convert an array object to a string in PowerShell?

How can I convert an array object to string?

I tried:

$a = "This", "Is", "a", "cat"
[system.String]::Join(" ", $a)

with no luck. What are different possibilities in PowerShell?

6 Answers
6

Leave a Comment