download options for string handling / substring examples
you can download the source as PHP file,
open the file as plain text in a new window or
get the code in a textarea to copy it.
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.
you can download the source as PHP file,
open the file as plain text in a new window or
get the code in a textarea to copy it.