Re: Finer points of debugging: vardump vs. print_r

From: Date: Tue, 10 Apr 2001 00:36:57 +0000
Subject: Re: Finer points of debugging: vardump vs. print_r
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-47904@lists.php.net to get a copy of this message
I use print_r on arrays, and var_dump on everything else. print_r will not tell you if a variable is NULL, but var_dump will. So I usually use both. -- Plutarck Should be working on something... ...but forgot what it was. ""John Lim"" <heyjohnlim@yahoo.com> wrote in message news:9asuq0$f1n$1@toye.p.sourceforge.net... > Just a question that has been besetting me for a while: > > which is better for debugging -- vardump( ) or print( ) ? > > Does anyone have a preference? Why? Is one better than the other? > Thanks for answering this prickly question! > > John Lim > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#47904) next »