$kelime = 'kelime';
echo substr($kelime,-3);