How can I parse the output of var_dump in PHP to create an array?
var_dump
Maybe you’re looking for var_export that will give you a valid PHP expression of the passed value.