published by Arshad on Sat, 03/20/2010 - 16:49
How many times do we use a quick print_r to see what's in $node or $result or anything else? When coding modules , it's not very easy to output data structures to the screen unless you do a print_r($node) and view the source code. or do it like this :
[php]<pre><?php print_r($node); ?></pre>[/php]
Here's a clean and simple way you can output such data on screen. If you have the developer module enable (devel), use the dsm() (drupal_set_message) function.
Recent comments