Some confusion..
Posted: Thu Jun 17, 2004 10:12 pm
Sorry to hijack your thread but I'm looking at this:
And can't quite figure that out. Am I just retarded or that another way to do an if statement with no else clause? i.e.
Again, sorry for the hijack, I just saw that and wanted to learn.
thanks,
John
feyd|note: this topic is split from a previous thread
Code: Select all
<?php
if(!defined('_DEBUG_'))
define('_DEBUG_',0);
if(1 || _DEBUG_)
echo $text;
?>Code: Select all
<?php
if(!defined('_DEBUG_')) {
define('_DEBUG_',0);
}
if(1 || _DEBUG_) { // that whole (1 || _DEBUG_) thing confuses me too
echo $text;
}
?>thanks,
John
feyd|note: this topic is split from a previous thread