Toggle navigation
Hot Examples
IT
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Cerca
Home
Sulu
Component
Util
TextUtils
PHP Class Sulu\Component\Util\TextUtils
Mostra file
Open project: sulu/sulu
Class Usage Examples
Public Methods
Method
Description
truncate
(
string
$text
,
integer
$length
,
string
$suffix
= '...' ) :
string
UTF-8 safe text truncation.
Method Details
truncate()
public
static
method
UTF-8 safe text truncation.
public
static
truncate
(
string
$text
,
integer
$length
,
string
$suffix
= '...' ) :
string
$text
string
- Text to truncate
$length
integer
- Length to truncate to
$suffix
string
- This string will replace the last characters of the text
return
string