eduard Posted February 6, 2011 Share Posted February 6, 2011 What is the difference between the comparison operator != and <>? Link to comment Share on other sites More sharing options...
boen_robot Posted February 6, 2011 Share Posted February 6, 2011 There is no difference."<>" was added because ASP (and VisualBasic in particular) uses that instead of "!=". To make it easier for VB programmers to learn PHP, they added that as a synonym for "!=". Link to comment Share on other sites More sharing options...
thescientist Posted February 6, 2011 Share Posted February 6, 2011 do you mean < and >?!= (not equal too, but typecasts)< (less then)> (greater then) Link to comment Share on other sites More sharing options...
boen_robot Posted February 6, 2011 Share Posted February 6, 2011 do you mean < or >?!= (not equal too, but typecasts)< (less then)> (greater then)No, he seriously reffers to "<>". It's probably a recent addition. I didn't know about it either until now, but I can see why they added it. Link to comment Share on other sites More sharing options...
thescientist Posted February 6, 2011 Share Posted February 6, 2011 yeah, I just checked the operators page and saw that. neat. Link to comment Share on other sites More sharing options...
eduard Posted February 6, 2011 Author Share Posted February 6, 2011 There is no difference."<>" was added because ASP (and VisualBasic in particular) uses that instead of "!=". To make it easier for VB programmers to learn PHP, they added that as a synonym for "!=".Thanks for your explanation! Link to comment Share on other sites More sharing options...
ckrudelux Posted February 6, 2011 Share Posted February 6, 2011 yeah, I just checked the operators page and saw that. neat.Yeah you can find it under w3schools php operator list also. Link to comment Share on other sites More sharing options...
thescientist Posted February 6, 2011 Share Posted February 6, 2011 Yeah you can find it under w3schools php operator list also.that's where I checked Link to comment Share on other sites More sharing options...
ShadowMage Posted February 7, 2011 Share Posted February 7, 2011 "<>" was added because ASP (and VisualBasic in particular) uses that instead of "!=". To make it easier for VB programmers to learn PHP, they added that as a synonym for "!=".SQL also uses <> to mean "not equal" Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.