limitText($text, $max)
$text : supplied text string
$max : maximum number of words to return.
$text = 'This is a string of not more than 10 texts';
$text = limitText($text, 7);
var_dump( $text );
This is a string of not more ...