note 25220 rejected from language.expressions by zak

From: Date: Sun, 15 Sep 2002 07:33:11 +0000
Subject: note 25220 rejected from language.expressions by zak
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-36692@lists.php.net to get a copy of this message
Why doesn't this work? <?php $debug = true; function p($s) { if ($debug) echo $s; } p("print me"); ?> Yet, if I replace the if statement in the function to read if (true) echo $s; then the page works as it should. What's going on here?

« previous php.notes (#36692) next »