Skip to content

Kirby 4.1.2

Str::toBytes()

Converts a filesize string with shortcuts like M, G or K to an integer value

Str::toBytes(string $size): int

Parameters

Name Type Default
$size * string

Return type

int

Parent class

Kirby\Toolkit\Str