note 93754 rejected from language.types.boolean by danbrown
| From: | danbrown@php.net | Date: | Fri, 25 Sep 2009 22:07:43 +0000 |
| Subject: | note 93754 rejected from language.types.boolean by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-161090@lists.php.net to get a copy of this message | ||
Note Submitter: kyle at kyleterry dot com
----
The author of this document has promoted bad PHP programming in his/her example.
// ...because instead, this can be used:
if ($show_separators) {
echo "<hr>\n";
}
The above would throw a Notice: Undefined variable error if $show_separators is not defined prior to
executing the if statement.