php var_export para string

$someString = var_export($anyVariable, true);
Brainy Bison