note 14296 added to language.types.boolean.php

From: Date: Wed, 25 Jul 2001 16:20:00 +0000
Subject: note 14296 added to language.types.boolean.php
Groups: php.notes 
Request: Send a blank email to php-notes+get-15823@lists.php.net to get a copy of this message
While it might not necessary to use this long syntax: if ($show_separators == true) { echo "<hr>\n"; } because the following syntax is valid: if ($show_separators) { echo "<hr>\n"; } as a newbie I think that using the long syntax is better from a readability/maintainability standpoint, because the long syntax more explicitly reflects the programmer's intent. http://www.php.net/manual/en/language.types.boolean.php

« previous php.notes (#15823) next »