#42874 [Opn->Bgs]: Feature proposal for print_r (for all PHP versions!)

From: Date: Sat, 06 Oct 2007 10:10:17 +0000
Subject: #42874 [Opn->Bgs]: Feature proposal for print_r (for all PHP versions!)
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-118256@lists.php.net to get a copy of this message
ID: 42874 Updated by: johannes@php.net Reported By: rc at opelgt dot org -Status: Open +Status: Bogus Bug Type: Feature/Change Request Operating System: all PHP Version: 5.2.4 New Comment: This is not possible since the variable container doesn't know anything about a name and also might have 0 or multiple names. You can simply print more information when needed. Previous Comments: ------------------------------------------------------------------------ [2007-10-06 09:59:46] rc at opelgt dot org Description: ------------ When using print_r for debugging it would be nice to see the name of the array. When the default maybe remains without name an additional parameter could say if the name of the array shall be displayed too (or a new function name print_rv with v for verbose?). now: Array ( [0] => K02 [1] => K03 [2] => K01 [3] => K04 [4] => K09 ) proposal: Array arrayname ( [0] => K02 [1] => K03 [2] => K01 [3] => K04 [4] => K09 ) ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=42874&edit=1

« previous php.bugs (#118256) next »