@@ 152-160 (lines=9) @@ | ||
149 | else { |
|
150 | echo '<b class="', XVARDUMP_CLASS_BOOL, '"><i>b</i></b> '; |
|
151 | } |
|
152 | if ( $var === false ) { |
|
153 | echo '<i class="', XVARDUMP_CLASS_B_FALSE, '">false</i>'; |
|
154 | } |
|
155 | else if ( $var === true ) { |
|
156 | echo '<i class="', XVARDUMP_CLASS_B_TRUE, '">true</i>'; |
|
157 | } |
|
158 | else { |
|
159 | echo '<i>undetermined</i>'; |
|
160 | } |
|
161 | if ( $short !== true ) { |
|
162 | echo ' )</span>'; |
|
163 | } |
|
@@ 338-346 (lines=9) @@ | ||
335 | */ |
|
336 | function pr_bool( $var ) { |
|
337 | if ( is_bool( $var ) ) { |
|
338 | if ( $var === false ) { |
|
339 | echo '<span class="', XVARDUMP_CLASS_B_FALSE, '">false', "</span>\n"; |
|
340 | } |
|
341 | else if ( $var === true ) { |
|
342 | echo '<span class="', XVARDUMP_CLASS_B_TRUE, '">true', "</span>\n"; |
|
343 | } |
|
344 | else { |
|
345 | echo 'E: boolean value undetermined'; |
|
346 | } |
|
347 | } |
|
348 | else { |
|
349 | echo 'E: not boolean'; |