Query: numfmt_get_error_message
OS: php
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
NUMFMT_GET_ERROR_MESSAGE(3) 1 NUMFMT_GET_ERROR_MESSAGE(3) NumberFormatter::getErrorMessage - Get formatter's last error message. Object oriented styleSYNOPSISpublic string NumberFormatter::getErrorMessage (void )DESCRIPTIONProcedural style string numfmt_get_error_message (NumberFormatter $fmt) Get error message from the last function performed by the formatter.PARAMETERSo $fmt -NumberFormatter object.RETURN VALUESReturns error message from last formatter call.EXAMPLESExample #1 numfmt_get_error_message(3) example <?php $fmt = numfmt_create( 'de_DE', NumberFormatter::DECIMAL ); $data = numfmt_format($fmt, 1234567.891234567890000); if(intl_is_failure(numfmt_get_error_code($fmt))) { report_error("Formatter error"); } ?> Example #2 OO example <?php $fmt = new NumberFormatter( 'de_DE', NumberFormatter::DECIMAL ); $fmt->format(1234567.891234567890000); if(intl_is_failure($fmt->getErrorCode())) { report_error("Formatter error"); } ?>SEE ALSOnumfmt_get_error_code(3), intl_get_error_code(3), intl_is_failure(3). PHP Documentation Group NUMFMT_GET_ERROR_MESSAGE(3)
Related Man Pages |
---|
numfmt_format(3) - php |
numfmt_get_attribute(3) - php |
numfmt_get_error_code(3) - php |
numfmt_parse(3) - php |
numfmt_set_pattern(3) - php |
Similar Topics in the Unix Linux Community |
---|
Jedi Code Format: JCF 2.40 released, Delpni 2009 support |
PERL:How to convert numeric values txt file to PACKED DECIMAL File? |
Awk Command help |