Merge pull request #811 from xsbeats/feature/str_limit_exact

Feature: Str::limit_exact    limits a string including its custom ending to a specified length
This commit is contained in:
Taylor Otwell
2012-09-01 16:51:39 -07:00
2 changed files with 26 additions and 0 deletions

View File

@@ -25,6 +25,7 @@ The **Str** class also provides three convenient methods for manipulating string
#### Limiting the number of characters in a string:
echo Str::limit($string, 10);
echo Str::limit_exact($string, 10);
#### Limiting the number of words in a string: