Vag Posted September 24, 2015 Share Posted September 24, 2015 $hi = null; if($hi =!null) { $hi = null; } else if ($hi =!null) { $hi = !null; } if ($hi = null) { $hi = !null; } else if { $hi = !null; } Quote Link to comment Share on other sites More sharing options...
primitivley Posted September 24, 2015 Share Posted September 24, 2015 true? Quote Link to comment Share on other sites More sharing options...
Kyle Posted September 24, 2015 Share Posted September 24, 2015 ur not that confused, it's not over 9000. Quote Link to comment Share on other sites More sharing options...
Lemons Posted September 24, 2015 Share Posted September 24, 2015 (edited) $hi = null; if($hi =!null) { // $hi = !null always returns true, $hi != null checks against nulls (or false/""/etc) $hi = null; // Set $hi to "null" } if ($hi = null) { // $hi = null always returns true, $hi == null checks for nulls (or false/""/etc) $hi = !null; // Set $hi to "true" } The rest is dead code, and welcome to Type Juggling! Edit: Sorry, I lied, tricky syntax Fixed now Edited September 24, 2015 by dudeami Quote Link to comment Share on other sites More sharing options...
QuakedM8 Posted September 24, 2015 Share Posted September 24, 2015 op is an fgt Quote Link to comment Share on other sites More sharing options...
itzDot Posted September 24, 2015 Share Posted September 24, 2015 just plain dumb Quote Link to comment Share on other sites More sharing options...