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
Also echo json_encode($dataobject); might be helpful
echo json_encode($dataobject);