note 63268 rejected from function.print-r by nlopess
| From: | nlopess@php.net | Date: | Fri, 17 Mar 2006 22:17:38 +0000 |
| Subject: | note 63268 rejected from function.print-r by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-106002@lists.php.net to get a copy of this message | ||
Note Submitter: philip dot waters dot pryce at gmail dot com
----
i would like to know if theres a way to reverse print_r function from strings to arrays again like
Array
(
[a] => apple
[b] => banana
[c] => Array
(
[0] => x
[1] => y
[2] => z
)
)
to an array like
array('a' => 'apple', 'b' => 'banner','c'
=> array(x,y,z));