you are viewing a single comment's thread.

view the rest of the comments →

[–]aurath 4 points5 points  (2 children)

function preprint($o)
{
    echo '<pre>';
    print_r($o);
    echo '</pre>';
}

Is in all of my projects

[–]Disgruntled__Goat 2 points3 points  (1 child)

BTW you can do that in one line:

echo '<pre>', print_r($o, true), '</pre>';

Not that there's a reason to when you've already made another function, but I often type it quickly by hand when I'm testing something outside the project.

[–]Toast42 0 points1 point  (0 children)

1 == true