I want to take the output of a var_dump or print_r and convert it to an array that mirrors what was in the original.
convert this:
stdClass Object
(
[title] => Edison's Friends
[status] => 1
[field_deck_owner] => Array
(
[und] => Array
(
[0] => Array
(
[uid] => 15
)
)
)
[name] => Mack
)
to this:
$array = array(
'title' -> 'Edison's Friends',
'status' -> '1',
'field_deck_owner' = array (
array(
array (
'uid'->15
)
)
),
'name' = "Mack"
);
Are there scripts that do this? A javascript site ;-) Something?