Jump to content

IF listing


Mutley

Recommended Posts

I'm pretty sure that if you go...

 

if($this, $that, $thing is NULL)

{

  echo "do something";

  }

 

...and (say) $this actually *is* NULL, then $that and $thing won't even be checked because the first part of the if statement is already shown to be true....

 

$this = 'NULL';

 

if($this, $that, $thing is NULL)

{

  echo "do something";

  }

 

...so in the above $this actually is NULL so the statement is already true and $that and $thing won't even be looked at by the statement.

Link to comment
https://forums.phpfreaks.com/topic/62724-if-listing/#findComment-312211
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.