note 63268 added to function.print-r
| From: | philip dot waters dot pryce at gmail dot com | Date: | Fri, 17 Mar 2006 21:04:17 +0000 |
| Subject: | note 63268 added to function.print-r | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-105999@lists.php.net to get a copy of this message | ||
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));
----
Server IP: 85.116.0.130
Probable Submitter: 80.5.160.5 (proxied: 82.24.73.72)
----
X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER
autolearn=no version=2.64
----
Manual Page -- http://www.php.net/manual/en/function.print-r.php
Edit -- http://master.php.net/note/edit/63268
Del: integrated -- http://master.php.net/note/delete/63268/integrated
Del: useless -- http://master.php.net/note/delete/63268/useless
Del: bad code -- http://master.php.net/note/delete/63268/bad+code
Del: spam -- http://master.php.net/note/delete/63268/spam
Del: non-english -- http://master.php.net/note/delete/63268/non-english
Del: in docs -- http://master.php.net/note/delete/63268/in+docs
Del: other reasons-- http://master.php.net/note/delete/63268
Reject -- http://master.php.net/note/reject/63268
Search -- http://master.php.net/manage/user-notes.php