[thelist] [PHP] DEFINE Vs $variable..?

Jay Blanchard jblanchard at pocket.com
Tue Feb 6 07:03:46 CST 2007

However, I've seen sites (PHPMyAdmin springs to mind?) where the
language include uses DEFINE..

What is the difference, and why is one better than the other..?

DEFINE provides you with the equivalent of a constant. They are
persistent and global in scope unless done within a function. 

More information about the thelist mailing list