Util/Format.php
\Conjoon_Util_Format
Package: Conjoon\Util\Util
Parameters
Returns
Utility methods for convinient access to convert/formatting methods.
- Author
- Thorsten Suckow-Homberg
- Category
- Util
Methods

convertToBytes(
mixed $value
)
:
int
static
Converts a (kilo/mega/giga)byte value to an integer value, representing the value in bytes.
If no valid quantifier (k, m, g) was found, the passed argument will be casted to int and returned.
| Name | Type | Description |
|---|---|---|
| $value | mixed |
| Type | Description |
|---|---|
| int |