How can I capture the result of var_dump to a string?
Use output buffering:
Use output buffering:
Most modern browsers have a console in their developer tools, useful for this sort of debugging. Then you will get a nicely mapped out interface of the object/whatever in the console. Check out the console documentation for more details.