Webmaster Forum  

Go Back   Webmaster Forum > Marketing, SEO and Development > Programming
User Name
Password
Register FAQ Members List Calendar Transactions Store Search Today's Posts Mark Forums Read


Quick and handy PHP snippet

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 01-03-2008, 22:19
sunken
Senior Member

sunken's Avatar

Join Date: Dec 2004
Posts: 237
Trader Rating: (0)
Points: 0 (Donate)
5 F$/Referral Refer Friends
sunken is on a distinguished road
Default Quick and handy PHP snippet

Here is something that you may find helpful. If you want to toggle between two states of something, you can use this:

Set a variable to 1, such as $a

and then

$a=3-$a;

Each time it executes, it will toggle between $a=1 and $a=2. This is helpful if you have something like different color lines for each line of data.

Just a quick thought...
sunken is offline
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


Resources : | Advertise at FHF | itextLink.com| Reseller Hosting| TextDot| iNamePros| Any Webmaster| Web Host| Dep3|


All times are GMT -4. The time now is 07:48.


Powered by: vBulletin
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.