FORMAT_GENERAL
FORMAT_GENERAL = 'General'
PHPExcel_Style_NumberFormat
$_isSupervisor : bool
Supervisor?
$_parent : \PHPExcel_Style
Parent. Only used for supervisor
$_builtInFormats : array
Excel built-in number formats
$_flippedBuiltInFormats : array
Excel built-in number formats (flipped, for faster lookups)
$_formatCode : string
Format Code
$_builtInFormatCode : string
Built-in format Code
$_dateFormatReplacements : array
Search/replace values to convert Excel date/time format masks to PHP format masks
$_dateFormatReplacements24 : array
Search/replace values to convert Excel date/time format masks hours to PHP format masks (24 hr clock)
$_dateFormatReplacements12 : array
Search/replace values to convert Excel date/time format masks hours to PHP format masks (12 hr clock)
__construct(bool $isSupervisor = FALSE, bool $isConditional = FALSE) : mixed
Create a new PHPExcel_Style_NumberFormat
bool | $isSupervisor | Flag indicating if this is a supervisor or not Leave this value at default unless you understand exactly what its ramifications are |
bool | $isConditional | Flag indicating if this is a conditional style or not Leave this value at default unless you understand exactly what its ramifications are |
applyFromArray(array $pStyles = null) : \PHPExcel_Style_NumberFormat
Apply styles from array
$objPHPExcel->getActiveSheet()->getStyle('B2')->getNumberFormat()->applyFromArray(
array(
'code' => PHPExcel_Style_NumberFormat::FORMAT_CURRENCY_EUR_SIMPLE
)
);
array | $pStyles | Array containing style information |
toFormattedString(mixed $value = '0', string $format = PHPExcel_Style_NumberFormat::FORMAT_GENERAL, array $callBack = null) : string
Convert a value in a pre-defined format to a PHP string
mixed | $value | Value to format |
string | $format | Format code |
array | $callBack | Callback function for additional formatting of string |
Formatted string