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
Long string: Just use echo($var); instead of dump($var);.
echo($var);
dump($var);
Object or Array: var_dump(''.json_encode($var).');'
var_dump(''.json_encode($var).');'
'.json_encode($var).'