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

Tris beertastic at gmail.com
Tue Feb 6 04:16:39 CST 2007

Hi all...
I've a 'help me learn' type question..

I've got to do a site in 2 languages...
My first thought was to simply set a session variable for each
language, and then have an include page like this:

if lang == english
$textWelome = "Welcome";
else if lang == chinese
$textWelome = "Ni Hao";


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..?

When a person can no longer laugh at himself, it is time for others to
laugh at him.
Thomas Szasz

More information about the thelist mailing list