Toggle navigation
Hot Examples
DE
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Suchen
Home
yii
helpers
BaseStringHelper
byteLength
yii\helpers\BaseStringHelper::byteLength PHP Method
BaseStringHelper Class Documentation
Datei anzeigen
Open project: yiisoft/yii2
byteLength()
public
static
method
This method ensures the string is treated as a byte array by using
mb_strlen()
.
public
static
byteLength
(
string
$string
) :
integer
$string
string
the string being measured for length
return
integer
the number of bytes in the given string.
public static function byteLength($string) { return mb_strlen($string, '8bit'); }
BaseStringHelper
basename
byteLength
byteSubstr
countWords
dirname
endsWith
explode
startsWith
truncate
truncateHtml
truncateWords