Re: Destroying Sessions

From: Date: Thu, 09 May 2002 00:15:37 +0000
Subject: Re: Destroying Sessions
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-96726@lists.php.net to get a copy of this message
Check out the manual's documentation for comparison operators for starters: http://www.php.net/manual/en/language.operators.comparison.php Then, write some simple scripts to play around: <? $var1 = 15; $var2 = 30; if($var1 < $var2) { echo "var1 is less than var2"; } else { echo "var1 is greater than var2"; } ?> After reading though the manual above, you could then change the "<" to ==, ===, <=, >=, !=, !==, <>, etc, and play around with the $var1 and $var 2 values to understand what's going on. on 09/05/02 10:00 AM, Chris Knipe (savage@savage.za.org) wrote: > Nevermind.... > > For it sorted... Does anyone have any reference to any documentation on > how to use if statements properly? > > I know this sounds silly now, but when exactly do you use $var = $value, or > $var == $value, and all the other operators? > > I'd really like to read up on this if someone can point me to a good > reference... I'm having the same type of situations with Perl as well... > Maybe it's just be who is stupid here... But hey, I'm trying :) > > -- > me

« previous php.general (#96726) next »