Prevent strings from growing to long and breaking the layout.
This function will trim the string $text to the number of chars given by the $length.
This function will trim the string $text to the number of chars given by the $length.
Quote
trimlink ( string $text, int $length )
<?php
$text = "The big brown fox jumped over the lazy dog";
echo trimlink($text, 10);
echo trimlink($text, 20);
?>
Quote
The big br...
The big brown fox ju...