var_dump vs print_r
One feature of print_r() worth noting as well is its second argument. If you pass true as the second argument, print_r()'s output is returned instead of directly output. var_dump() cannot do this, but var_dump() does do a bit more work useful for debugging that print_r() doesn't. It all comes down to what you're doing and which one makes the most sense for your situation.
Last edited by vinyl-junkie; 09-28-2013 at 06:06 AM..
Reason: signatures only allowed through the control panel