note 64823 rejected from language.constants by bjori

From: Date: Fri, 21 Apr 2006 10:18:20 +0000
Subject: note 64823 rejected from language.constants by bjori
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-108911@lists.php.net to get a copy of this message
Note Submitter: flyhaotian at hotmail dot com ---- If a variable has been declared and set value (e.g. $county='China'),but without changing it anytime,isn't it a constant(or at least like a constant).So,I also creat a constant in the way of declaring a variable. And now,I want to know whether there is any performance difference between them?Is it a good idea to use constant in this way? Who can tell me?Thank you.

« previous php.notes (#108911) next »