Substring

The Substring method selects part of a string. Substring can select everything after a specific index:

$myString = 'abcdefghijklmnopqrstuvwxyz' 
$myString.Substring(20)   # Start at index 20. Returns 'uvwxyz' 

Substring can also select a specific number of characters from a starting point:

$myString = 'abcdefghijklmnopqrstuvwxyz' 
$myString.Substring(3, 4) # Start at index 3, get 4 characters. 
The index starts at 0, counting from the beginning of 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.17.154.171