Toggle navigation
Hot Examples
EN
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Search
Home
rock
sanitize
rules
Truncate
PHP Class rock\sanitize\rules\Truncate
Inheritance:
extends
Rule
Show file
Open project: romeoz/rock-sanitize
Class Usage Examples
Protected Properties
Property
Type
Description
$length
$suffix
Public Methods
Method
Description
__construct
(
$length
= 4,
$suffix
= '...',
$config
= [] )
sanitize
(
$input
)
Method Details
__construct()
public
method
public
__construct
(
$length
= 4,
$suffix
= '...',
$config
= [] )
sanitize()
public
method
public
sanitize
(
$input
)
Property Details
$length
protected property
protected
$length
$suffix
protected property
protected
$suffix