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"" <[EMAIL PROTECTED]> wrote in message 9asuq0$f1n$[EMAIL PROTECTED]">news:9asuq0$f1n$[EMAIL PROTECTED]... > 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: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]