Skip to content

Instantly share code, notes, and snippets.

@jtuttas
Created April 10, 2013 14:08
Show Gist options
  • Save jtuttas/5354953 to your computer and use it in GitHub Desktop.
Save jtuttas/5354953 to your computer and use it in GitHub Desktop.
Zeichenkette drehen als Funktion
cls
function dreh([String]$a) {
$out=""
for ($i=$a.Length-1;$i -ge 0;$i--) {
$out=$out+$a.Chars($i)
}
return $out
}
$a=dreh ("Hallo")
Write-Host ("Gedreht ("+$a+")")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment