Feature request for print_r() and var_dump()

From: Date: Sat, 15 Jan 2005 00:10:59 +0000
Subject: Feature request for print_r() and var_dump()
Groups: php.general 
Request: Send a blank email to php-general+get-206402@lists.php.net to get a copy of this message
I suggest a slight but useful change to these two functions, or possibly an alternate parameter. I find myself always having to do this annoyance: echo "<B>myDevice</B><BR>"; print_r($myDevice); To get: myDevice Array ( [3333] => Array ( [range] => range_3 [scanner] => scanner_3 [record] => record_3 ) [4444] => Array ( [range] => range_4 [scanner] => scanner_4 [record] => record_4 ) ) It seems to me the functions should just print out the name of the array you're looking at, at the very top, just as it prints out the keys. I already know it's an "Array" or I wouldn't be print_r()'ing it.

« previous php.general (#206402) next »