How can I parse the output of var_dump in PHP to create an array?
var_dump
You can't. var_dump just outputs text but doesn't return anything.