$sayi = "123456789";
echo substr($sayi,0,-1).".".substr($sayi,-1);