|
static | toFormattedString ($value, string $format, null|array|callable $callBack=null) |
| Convert a value in a pre-defined format to a PHP string.
|
|
|
static | adjustSeparators (string $value) |
|
static | stripQuotes (string $format) |
|
◆ toFormattedString()
static PhpOffice\PhpSpreadsheet\Style\NumberFormat\Formatter::toFormattedString |
( |
| $value, |
|
|
string | $format, |
|
|
null|array|callable | $callBack = null ) |
|
static |
Convert a value in a pre-defined format to a PHP string.
- Parameters
-
null | array | bool | float | int | RichText | string | $value | Value to format |
string | $format | Format code: see = self::FORMAT_* for predefined values; or can be any valid MS Excel custom format string |
null | array | callable | $callBack | Callback function for additional formatting of string |
- Return values
-
The documentation for this class was generated from the following file:
- lib/phpspreadsheet/phpspreadsheet/src/PhpSpreadsheet/Style/NumberFormat/Formatter.php