ultimo numeto php

substr($stringName, $startingPosition, $lengthOfSubstring);
Pier Paolo Anselmi