79835273

Date: 2025-12-01 20:51:23
Score: 2.5
Natty:
Report link

thanks for all yours.

here is my APP/PORTAL/software:


ALL SCRIPTS INTO my APP load:

    web/config.php
        -> this file define:
            time ZONE
            directory for images
            ect...

ONLY when users OPEN:

    web/tools_14
    web/tools_21
    web/tools_26

I need use the class NumberFormatter()
then:

is a bad practice ADD into {web/config.php} the var

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

???

if I do then the WHOLE web use Xram with this CLASS,

if I not do (my current practice) then I need call into each "TOOL" the class

in your opinion which is the more efficient?

( if we need something as "function_very_hard()" then we only ADD this function/class into the fragment code who require that, and not into "config.php"

but this is only "NumberFormatter()"

what can you recommended to me?

that is all, thanks

Reasons:
  • Blacklisted phrase (0.5): thanks
  • Blacklisted phrase (0.5): I need
  • Blacklisted phrase (1): ???
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: XHtml