<?php

$uzanti = "thumbs/5/0/2/21972_2.jpg";

$uzantison = substr($uzanti,-6);

echo $uzantison;

?>
bu işini görebilir.