04-13-2005, 12:22 PM
|
#6 (permalink)
|
|
The Wanderer
Join Date: Apr 2005
Posts: 7
Thanks: 0
|
Actually there is a cool trick in C that should work in PHP...
To toggle between on and off in any situation, you can just do this (if you don't have a counter running)...
$j=1-$j;
if $j equals 1 then it equals 0
if $j equals 0 then it equals 1
Then just check $j to do whatever you want 0 or 1 to represent.
|
|
|
|