Possible Duplicate:
Create array printed with print_r
Duplicate of How create an array from the output of an array printed with print_r? which also has a nice code example to solve this
I need to reverse an error log which has as output print_r($data,true)
.
Example data would look like:
Array
(
[subject] => this is the subject
[body] => <p>Dear user,</p><p>this is the body of the email</p>
[from_id] => 0
[from_email] => admin@karakas.org
[to] => Array
(
[0] => Array
(
[id] => 0
[email] => 64909
)
)
[send_to_inbox] => 1
)