From: rc at opelgt dot org Operating system: all PHP version: 5.2.4 PHP Bug Type: Feature/Change Request Bug description: Feature proposal for print_r (for all PHP versions!)
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 bug report at http://bugs.php.net/?id=42874&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=42874&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=42874&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=42874&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=42874&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=42874&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=42874&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=42874&r=needscript Try newer version: http://bugs.php.net/fix.php?id=42874&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=42874&r=support Expected behavior: http://bugs.php.net/fix.php?id=42874&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=42874&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=42874&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=42874&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=42874&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=42874&r=dst IIS Stability: http://bugs.php.net/fix.php?id=42874&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=42874&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=42874&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=42874&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=42874&r=mysqlcfg