RE: [PHP-DEV] Bug #12381: Data Structure Dumper Feature Needed
| From: | Brian Tanner | Date: | Thu, 26 Jul 2001 00:38:52 +0000 |
| Subject: | RE: [PHP-DEV] Bug #12381: Data Structure Dumper Feature Needed | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-61010@lists.php.net to get a copy of this message | ||
Actually its a great enough idea that its already there ;)
http://www.php.net/manual/en/function.serialize.php
Internal Format
XML Variant if you want to communicate between apps
http://www.php.net/manual/en/ref.wddx.php
:)
I think thats what you are looking for
Brian Tanner
Project Manager
Zaam Internet Solutions
Toll Free: 1-866-225-2675
info@zaam.com
http://www.zaam.com
-----Original Message-----
From: cdaveb@csua.berkeley.edu [mailto:cdaveb@csua.berkeley.edu]
Sent: July 25, 2001 3:31 PM
To: php-dev@lists.php.net
Subject: [PHP-DEV] Bug #12381: Data Structure Dumper Feature Needed
From: cdaveb@csua.berkeley.edu
Operating system: Linux
PHP version: 4.0.6
PHP Bug Type: Feature/Change Request
Bug description: Data Structure Dumper Feature Needed
I'd like to suggest that a built in function for dumping PHP data
structures (arrays, variables, etc.) into a string which could then be
exported to a file be created. This would work something like the Perl
Data::Dumper module. This would be extremely useful for creation of
persistent datastructures, especially helpful for programs which include
web interfaces to edit settings which are used by another portion of the
program.
I find myself writing simple code to do this a lot, but it is something
that gets pretty messy whenever I'm trying to recreate multidimensional
arrays and such so that they can later be required into a PHP page. I'm
sure that a function of this type would be useful to a lot of PHP users and
I hope you'll consider adding it.
I've looked at a lot of the code repository sites by the way, and I haven't
found anything that seems to resemble what I'm looking for already
available, but I think it's the type of thing that should really be a part
of the base PHP.
--
Edit bug report at: http://bugs.php.net/?id=12381&edit=1
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net
For additional commands, e-mail: php-dev-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net