Funzione per tagliare una stringa:

codice:
function tagliastr($testo,$max) {
	$caratteri = strlen($testo);
	if($caratteri > $max) {
		return substr($testo, 0, $max)."...";
	} else {
		return $testo;
	}
}
per visualizzare:

codice:
echo tagliastr($stringa,55);
dove 55 è il numero di caratteri da visualizzare.