Note that
substr($str, -2, 2)
can also be written as
substr($str, -2)
since substr defaults to extracting the rest of the string.
In reply to Re^2: Printing last two characters
by ikegami
in thread SOLVED Printing last two characters
by Slug
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |