CodeIgniter v4.6 API

FileSizeUnit : int
in package

Table of Contents

Cases

B
GB  = 3
KB  = 1
MB  = 2
TB  = 4

Methods

fromString()  : self
Allows the creation of a FileSizeUnit from Strings like "kb" or "mb"

Cases

Methods

fromString()

Allows the creation of a FileSizeUnit from Strings like "kb" or "mb"

public static fromString(string $unit) : self
Parameters
$unit : string
Tags
throws
InvalidArgumentException
Return values
self

        
On this page

Search results