Package

ViewHelpers

ViewHelper Documentation

v:count.bytes

Counts bytes (multibyte-safe) in a string.

Usage examples

<v:count.bytes>{myString}</v:count.bytes> (output for example `42`

{myString -> v:count.bytes()} when used inline

<v:count.bytes string="{myString}" />

{v:count.bytes(string: myString)}

Arguments

string string

String to count, if not provided as tag content

encoding string

Character set encoding of string, e.g. UTF-8 or ISO-8859-1

ViewHelper Resources

Schema Resources