some examples using substr(),
extracting the first, last, n chars of a string.
reverse a string or see how many times a char is used in a string.

copy the code of string handling / substring examples

click here to select all the code