Skip to content

Kirby 6.0.0

V::size()

Checks that the value has the given size

V::size(mixed $value, mixed $size, '=='|'<'|'>'|'<='|'>=' $operator = '=='): bool

Parameters

Name Type Default
$valuerequired mixed no default value
$sizerequired mixed no default value
$operator '=='or'<'or'>'or'<='or'>=' '=='

Return type

bool

Parent class

Kirby\Toolkit\V