Using substr() with negative length
<? print substr('This is a test. This is another test.',15,-2); print substr('This is a test. This is another test.',-4,-1); ?>