[thelist] best way to do dynamic tabs in PHP

Aleem Bawany aleem.bawany at utoronto.ca
Tue Jan 21 22:21:01 CST 2003


> if ($curr == "one.php" || print("normal page")) {
> 	echo "current page";
> }

uhm.. that one has a slight problem, print returns true
so the IF statement will always execute. You could correct
it using xor, but better leave that for other uses.

aleem

[ http://members.evolt.org/aleem/ ]




More information about the thelist mailing list