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 may also try to use the serialize() function. Sometimes it is very useful for debugging purposes.