Page 1 of 1

[SOLVED] what function

Posted: Fri Apr 15, 2005 9:48 am
by shiznatix
what function do i use to get the last 4 characters of a string, i cant seam to remember this one.

Posted: Fri Apr 15, 2005 9:50 am
by Bennettman
substr($string, -4, 4);

Posted: Fri Apr 15, 2005 9:51 am
by shiznatix
much thanks