newb Posted October 6, 2006 Share Posted October 6, 2006 i dont get it. :x Link to comment https://forums.phpfreaks.com/topic/23195-difference-between-and/ Share on other sites More sharing options...
Zane Posted October 6, 2006 Share Posted October 6, 2006 === or !== is a strict comparison....to compare both the value AND the variable type== or != is a basic comparison....to compare just the valuefor instance[code=php:0]var_dump(false == 0); //displays truevar_dump(false !=== 0); //displays false[/code] Link to comment https://forums.phpfreaks.com/topic/23195-difference-between-and/#findComment-105162 Share on other sites More sharing options...
newb Posted October 6, 2006 Author Share Posted October 6, 2006 i didnt ask the difference between !== and !=...i asked the difference between !== and ==!... lol. Link to comment https://forums.phpfreaks.com/topic/23195-difference-between-and/#findComment-105214 Share on other sites More sharing options...
obsidian Posted October 6, 2006 Share Posted October 6, 2006 [quote author=newb link=topic=110714.msg448207#msg448207 date=1160162402]i didnt ask the difference between !== and !=...i asked the difference between !== and ==!... lol.[/quote]well, !== is explained above, and ==! isn't a PHP operator at all Link to comment https://forums.phpfreaks.com/topic/23195-difference-between-and/#findComment-105217 Share on other sites More sharing options...
newb Posted October 6, 2006 Author Share Posted October 6, 2006 but i used it before and it worked as if i was using !== :/ Link to comment https://forums.phpfreaks.com/topic/23195-difference-between-and/#findComment-105241 Share on other sites More sharing options...
newb Posted October 7, 2006 Author Share Posted October 7, 2006 lol?? Link to comment https://forums.phpfreaks.com/topic/23195-difference-between-and/#findComment-105619 Share on other sites More sharing options...
redbullmarky Posted October 7, 2006 Share Posted October 7, 2006 i cant think of any reason why you'd need to use ==! as the whole logic of it is a little mindblowing.this would mean $a not equal to $b:$a!==$bthis would mean $a equal to not $b. so if $b is set, or true, !$b = false . if $b not set or is false, $!b = true$a==!$b Link to comment https://forums.phpfreaks.com/topic/23195-difference-between-and/#findComment-105634 Share on other sites More sharing options...
redarrow Posted October 7, 2006 Share Posted October 7, 2006 that is madness man what the hel is that ==!incorrect read the above information there is not a operator like that in the world for php you might of used it but it's not doing nothink wast of code.your making your own php code up lolwho in there right mind would say this examplea equal not b what?$a==!b;you blow my mind lol................... Link to comment https://forums.phpfreaks.com/topic/23195-difference-between-and/#findComment-105635 Share on other sites More sharing options...
redbullmarky Posted October 7, 2006 Share Posted October 7, 2006 lol if it works and doesnt throw an error, then technically its perfectly valid syntax...i even (sadly) went and had a play around with it. i can safely say that it'll never end up in anything i ever do :) Link to comment https://forums.phpfreaks.com/topic/23195-difference-between-and/#findComment-105641 Share on other sites More sharing options...
newb Posted October 7, 2006 Author Share Posted October 7, 2006 lmfao. it worked fine for me rofl. Link to comment https://forums.phpfreaks.com/topic/23195-difference-between-and/#findComment-105677 Share on other sites More sharing options...
ober Posted October 8, 2006 Share Posted October 8, 2006 Hmm... I think this is about done. Link to comment https://forums.phpfreaks.com/topic/23195-difference-between-and/#findComment-105715 Share on other sites More sharing options...
Recommended Posts