NumberFormatter::setPattern numfmt_set_pattern Set formatter pattern &reftitle.description; Object oriented style bool NumberFormatter::setPattern stringpattern Procedural style bool numfmt_set_pattern NumberFormatterfmt stringpattern Set the pattern used by the formatter. Can not be used on a rule-based formatter. &reftitle.parameters; fmt NumberFormatter object. pattern Pattern in syntax described in ICU DecimalFormat documentation. &reftitle.returnvalues; &return.success; &reftitle.examples; <function>numfmt_set_pattern</function> example ]]> OO example getPattern()."\n"; echo $fmt->format(1234567.891234567890000)."\n"; $fmt->setPattern("#0.# kg"); echo "Pattern: ".$fmt->getPattern()."\n"; echo $fmt->format(1234567.891234567890000)."\n"; ?> ]]> &example.outputs; &reftitle.seealso; numfmt_get_error_code numfmt_create numfmt_get_pattern