best self written PHP function. ever.

Okay, maybe I’m overrating it, but I still love it for debugging purposes… unless you are using the CLI.

[snippet]
function pre($array)
{
echo ‘<pre>’;
echo print_r($array);
echo ‘</pre>’;
}
[/snippet]

You might also want to look at these posts

  • always_populate_raw_post_data disabled? here’s a workaround
  • Facebook Error Message: Requires valid next URL.
  • memcache_connect() [function.memcache-connect]: Can’t connect to localhost:11211
  • PHP Get monday, sunday, last monday & last sunday
  • Drupal 5 Views Module Breaks Block Administration
  • 

    Leave a Reply

    Formatting: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

    Archives

    Twitter!