PHP, NumberFormatter() eat a lot of RAM?

4 days ago 9
ARTICLE AD BOX

yes, now is 2025 (2026) and any VPS have a lot of RAM... however yet we love CARE our RAM; then in PHP is bad idea define for the whole program:

$n2text = new NumberFormatter('eng', NumberFormatter::SPELLOUT);

maybe many RAM in each client connected???

really is best define

$n2text = new NumberFormatter('eng', NumberFormatter::SPELLOUT);

into each BLOCK of code requiring that?

or to future maintenance is best have the $VAR around of ALL code/any piece of program ?

Read Entire Article