Indexing into strings

In PowerShell, it's possible to index into a string the same way as we select elements from an array. Consider the following example:

$myString = 'abcdefghijklmnopqrstuvwxyz' 
$myString[0]     # This is a (the first character in the string) 
$myString[-1]    # This is z (the last character in the string) 
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.142.53.68