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:
@@ -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:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user