PHP Class Sulu\Component\Util\TextUtils

Afficher le fichier Open project: sulu/sulu Class Usage Examples

Méthodes publiques

Méthode Description
truncate ( string $text, integer $length, string $suffix = '...' ) : string UTF-8 safe text truncation.

Method Details

truncate() public static méthode

UTF-8 safe text truncation.
public static truncate ( string $text, integer $length, string $suffix = '...' ) : string
$text string - Text to truncate
$length integer - Length to truncate to
$suffix string - This string will replace the last characters of the text
Résultat string