Moodle PHP Documentation 5.1
Moodle 5.1dev (Build: 20250620) (7d9030acd6e)
PhpOffice\PhpSpreadsheet\Style\NumberFormat\Formatter Class Reference
Inheritance diagram for PhpOffice\PhpSpreadsheet\Style\NumberFormat\Formatter:
PhpOffice\PhpSpreadsheet\Style\NumberFormat\BaseFormatter

Static Public Member Functions

static toFormattedString ($value, string $format, null|array|callable $callBack=null)
 Convert a value in a pre-defined format to a PHP string.
 

Static Protected Member Functions

static adjustSeparators (string $value)
 
static stripQuotes (string $format)
 

Member Function Documentation

◆ 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$valueValue to format
string$formatFormat code: see = self::FORMAT_* for predefined values; or can be any valid MS Excel custom format string
null | array | callable$callBackCallback function for additional formatting of string
Return values
stringFormatted string

The documentation for this class was generated from the following file: