<?php $yazi = 'Yazdırılcak yazı buraya gelcek'; if(strlen($yazi) >50){ echo substr($yazi, 0,50).' ...'; }else{ echo $yazi; } ?>