Bug #18411 Updated: print_r(FALSE) not consistant with print_r(TRUE)

From: Date: Thu, 18 Jul 2002 13:26:09 +0000
Subject: Bug #18411 Updated: print_r(FALSE) not consistant with print_r(TRUE)
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-14529@lists.php.net to get a copy of this message
ID: 18411 Updated by: derick@php.net Reported By: peter.farr@eds.com Status: Open Bug Type: *General Issues Operating System: W2K Professional PHP Version: 4.2.1 Previous Comments: ------------------------------------------------------------------------ [2002-07-18 09:09:10] peter.farr@eds.com No doubt there is a reason for: print_r(TRUE) displays 1 print_r(FALSE) displays nothing But too me, it just seems inconsistant, bad practise and very confusing. I can find nothing in the documentation I have on, why it is like this, as the text indicates 0 is to FALSE as 1 is to TRUE. It is also obvious from your bug list, that the area of TRUE/FALSE and 1/0 has its problems. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=18411&edit=1

« previous php.bugs (#14529) next »