View Single Post
  #8 (permalink)  
Old 06-14-2007, 11:11 AM
chrishirst chrishirst is offline
Jr. Programmer
Join Date: Jun 2007
Location: Blackpool UK
Posts: 87
iTrader: (0)
chrishirst will become famous soon enoughchrishirst will become famous soon enough
echo will only output the current value of a variable

var_dump will output the type and value and in the case of an array will output all of the elements with their types and values.

extremely useful if you are debugging associative arrays from database data

__________________
Chris
Indifference will be the downfall of mankind, but who cares?
Code Samples | People Counting System
Digg this Post! Del.Icio.Us this Post! Technorati this Post! Furl this Post! Mister Wong this Post! Newsvine this Post! Spurl this Post! Reddit this Post! Netscape this Post!