Results 1 to 8 of 8
Threaded View
-
17th Jan 2011, 02:36 AM #1OPMember
Anyone Who Knows PHP Programing
I like to use a php function to switch between ON and OFF automatically upon the call.
Of course something simple like
$condition="OFF";
switch ($condition) {
case "OFF" :
$condition="ON";
break;
case "ON" :
$condition="OFF";
break;
}
this always returns ON but that is not what I need. How can I make it so that it remember the previous setting of $condition and act accordingly so it alternate between ON/Off automatically upon the call to the function?
ThanksTigger Reviewed by Tigger on . Anyone Who Knows PHP Programing I like to use a php function to switch between ON and OFF automatically upon the call. Of course something simple like $condition="OFF"; switch ($condition) { case "OFF" : $condition="ON"; break; case "ON" : $condition="OFF"; Rating: 5
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
Programing services
By dropboks in forum Completed TransactionsReplies: 0Last Post: 11th Mar 2012, 08:16 PM -
what programing language needed to code a bot
By YOUSEFN in forum General DiscussionReplies: 1Last Post: 25th Jan 2012, 04:16 PM -
Some help need in Java programing
By bapi21 in forum Web Development AreaReplies: 1Last Post: 10th Jul 2011, 01:08 PM -
TCP / Ip programing ?
By CatchItBaby in forum Web Development AreaReplies: 2Last Post: 8th Jul 2010, 02:38 PM
themaPoster - post to forums and...
Version 5.38 released. Open older version (or...