note 25633 added to function.var-dump
| From: | jounlai at rack1 dot php dot net | Date: | Tue, 01 Oct 2002 06:36:54 +0000 |
| Subject: | note 25633 added to function.var-dump | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-37453@lists.php.net to get a copy of this message | ||
the source code above has a small bug.
...
else if (is_bool($vInput))
{
===> $return .= "bool(<b>" . $vInput ? "true" : "false" .
"</b>)</td>";
}
else if (is_array($vInput))
{
...
must be like,
===> $return .= "bool(<b>" . ($vInput ? "true" : "false") .
"</b>)</td>";
Because the priority of ?: operator is almost the lowest one. Anyway it's a very convinient
function. I love it.
--
http://www.php.net/manual/en/function.var-dump.php
http://master.php.net/manage/user-notes.php?action=edit+25633
http://master.php.net/manage/user-notes.php?action=delete+25633
http://master.php.net/manage/user-notes.php?action=reject+25633