I\'d like to capture the output of var_dump to a string.
The PHP documentation says;
As with anything that outputs its result directly to the
You could also do this:
$dump = print_r($variable, true);