in reply to Re: substring problem???
in thread substring problem???

print substr($string, -4, 4);
Boris

Replies are listed 'Best First'.
Re^3: substring problem???
by bart (Canon) on May 28, 2006 at 09:03 UTC
    No need for the 3rd parameter if you need the whole rest of the string. Just
    substr($string, -4)
    will do.