Well, if you're going to be just echoing a string, yes, halopro's code would probably be better, although it may use more memory (not even a noticeable amount). If you're going to preform an actual function or something, you'd use something like mine
MillerTime, on Sep 29 2005, 03:25 PM, said:
rc69, on Sep 28 2005, 10:35 PM, said:
Vary simple problem...
if($arg==1){
echo "lo";
}elseif($arg==2){
echo "hi";
}
When doing an if, you want to see if something equals "==" another thing. Not set it equal "=" to another.
p.s. I did change the structure of your code to how i prefer it, you can change it to the way you had it (if you know how) later

actually, "==" is not called "equal" it is called "identical". So when using ifs and elses do not use the equal sign ("=") because that would just cause an infinite loop
http://www.php.net/manual/en/language.oper....comparison.php
"===" is 'identical'. Trust me, i've been doing this for a while, and they told me i was right ^