Live chat Whatsapp
Live chat Whatsapp
Attiva Web - Realizzazione siti internet, ecommerce

Is it possible to redefine a constant in php?

    • Today we will see if can or not can redefine a constant in PHP.

      There's dry answer to this question, and the answer is NO!

      Precisely by its nature, as a constant, it is not possible to change its value. The constants in php are born precisely to remain precisely constant while using your scripts; might seem like a limit instead; just their strength.

      The alternative is to use traditional variables, to which it is always possible to change value at any time.

      Francesco // 13-08-2020 // PHP

    Lascia un commento

    Invia commento


    ATTENZIONE: il tuo commento verrà prima moderato e se ritenuto idoneo sarà pubblicato