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
  • we all ? unicode!
  • javascript str_replace equivalent
  • PHP Get monday, sunday, last monday & last sunday
  • Wordpress mysqli 2.9 Database Class Patch
  • 

    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!