Raised This Month: $ Target: $400
 0% 

Is small like C++


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
BAILOPAN
Join Date: Jan 2004
Old 07-17-2004 , 07:38  
Reply With Quote #6

It's a bit more complicated than that...

= is the unary "assignment" operator
== is the binary "equal" operator
a = b will set b equal to a, and then return a
a == b will check if a is equal to b (returning 1 or 0)

and in PHP, it gets weirder, there is
a === b which checks if two things have the same data type also

if (a = b) will return whether b is true
if (a == b) will return whether a is equal to b
__________________
egg
BAILOPAN is offline
 



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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 14:37.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode