The substr() method returns a specified part of a string. If you specify (4,6) the returned string will be from the second character (start at 0) and 6 long.
The substring() method also returns a specified part of a string. If you specify (4,6) it returns all characters from the second character (start at 0) and up to, but not including, the sixth character.