[wp-hackers] debugging with print_r

Omry Yadan omry at yadan.net
Sat Sep 15 06:48:01 GMT 2007


Keith Constable wrote:

>> Dude, no need for output buffering -- just add "true" as a parameter to
>> print_r():
>>
>> 	$doesntecho = print_r($input, true);
>>     
>
> To be fair, IIRC, print_r() uses the output buffering routines
> internally to capture and return the information.
>   
Probably.
the reason is that php was developed as one big ongoing hack. :)


More information about the wp-hackers mailing list