Billy,
There must be a limit to the number of variables you can use in php but I
haven't run up against a limit yet, and php seems to run as fast on my high
variable count code as my more mundane code.
Obviously, the advantage of using variables is that you can group your
"variables/constants" in one area at the top of your code and when you need
to change one of the constants (and you know you will need to do this
eventually) you won't need to look for it in amongst your code.
Not really an answer to your question but more of an observation on my part.
I hope one of the more experienced will also pipe in.
Good Luck
Hugh
----- Original Message -----
From: "Billy" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, May 27, 2002 8:46 AM
Subject: [PHP] Variable vs Constant


> what harm will it make if i declear a value as VARIABLE where i should
make
> it as CONSTANT actually??
>
> how about if i declear 100 values as VARIABLEs where all are CONSTANTs
> actually?
>
> thx
> HPS
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to