Toggle navigation
Hot Examples
RU
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Найти
Главная
yii
helpers
BaseConsole
ansiStrlen
yii\helpers\BaseConsole::ansiStrlen PHP Метод
Документация по классу BaseConsole
Показать файл
Открыть проект
ansiStrlen()
публичный
статический
Метод
Returns the length of the string without ANSI color codes.
public
static
ansiStrlen
(
string
$string
) :
integer
$string
string
the string to measure
Результат
integer
the length of the string not counting ANSI format characters
public static function ansiStrlen($string) { return mb_strlen(static::stripAnsiFormat($string)); }
BaseConsole
ansiFormat
ansiFormatCode
ansiStrlen
ansiToHtml
beginAnsiFormat
clearLine
clearLineAfterCursor
clearLineBeforeCursor
clearScreen
clearScreenAfterCursor
clearScreenBeforeCursor
confirm
endAnsiFormat
endProgress
error
escape
getScreenSize
hideCursor
input
isRunningOnWindows
markdownToAnsi
moveCursorBackward
moveCursorDown
moveCursorForward
moveCursorNextLine
moveCursorPrevLine
moveCursorTo
moveCursorUp
output
prompt
renderColoredString
restoreCursorPosition
saveCursorPosition
scrollDown
scrollUp
select
showCursor
startProgress
stderr
stdin
stdout
streamSupportsAnsiColors
stripAnsiFormat
updateProgress
wrapText
xtermBgColor
xtermFgColor