February 2019
Intermediate to advanced
626 pages
15h 51m
English
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.
Read now
Unlock full access