Toggle navigation
Hot Examples
KO
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
검색
홈
Sulu
Component
Util
TextUtils
PHP 클래스 Sulu\Component\Util\TextUtils
파일 보기
프로젝트 열기: sulu/sulu
1 사용 예제들
공개 메소드들
메소드
설명
truncate
(
string
$text
,
integer
$length
,
string
$suffix
= '...' ) :
string
UTF-8 safe text truncation.
메소드 상세
truncate()
공개
정적인
메소드
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
리턴
string