Plexus Content Management System

cutByWords

Develop / Tools / cutByWords
Since version 0.1 - 0.4
$this->tools->cutByWords($text, $count = 28)

Description

Cuts $text to $count words. If $count is larger that the count of words in $text, three dots are added to the end of the return value.

Parameters

$text
$count = 28

Return

string