Un-define constants with define/apc_define_constants in PHP
问题 I'm using constants for output messages in different languages. For example, if a user chooses "English", a file with this constant would be required: define('welcomeMessage','Welcome!'); If she chooses "Spanish": define('welcomeMessage','Bien Venidos!'); etc etc... The problem occurs when a user iterates through languages. I can't redefine constants with either define/apc_define_constants (as far as I know). Can I delete and redefine them? Is there a good solution for this? 回答1: Constants