SproutCMS

This is the code documentation for the SproutCMS project

function truncate()

Trim a string if it's too long. Adds a ... ellipsis character.

Usage

string truncate ( string $text , int $length );

Arguments

  1. string $text
  2. int $length

Return value

  • string