Dislike var_export and print_r ? Would like to have var_dump spit its output to a variable ? There you go !

function dump($var)
{
    ob_start();
    var_dump($var);

    return ob_get_clean();
}