Splitting a string into separate variables

Like this?

$string = 'FirstPart SecondPart'
$a,$b = $string.split(' ')
$a
$b

Leave a Comment