note 82775 deleted from function.define by cmb

From: Date: Sun, 06 Oct 2019 07:43:20 +0000
Subject: note 82775 deleted from function.define by cmb
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-212461@lists.php.net to get a copy of this message
Note Submitter: jason@sitehatchery dot com ---- You can store your constant as the value of a variable like this: $variable=VARIABLE; To access the constant, do this: constant($variable). Beware: if your variable changes, then you loose your reference to the constant - but the constant itself will not change. I've found this especially useful for storing the constant string (i.e. VARIABLE) in a database.

« previous php.notes (#212461) next »