Re: Bug #12381 Updated: Data Structure Dumper Feature Needed
| From: | Cari D. Burstein | Date: | Thu, 26 Jul 2001 19:02:39 +0000 |
| Subject: | Re: Bug #12381 Updated: Data Structure Dumper Feature Needed | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-61096@lists.php.net to get a copy of this message | ||
Sorry about that, I didn't realize at the time the serialize and unserialize existed. It might not be a bad idea to add a few more useful keywords to that documentation page in case other people like me have trouble finding it. I would have never thought to look under those names for the feature. I was looking for terms like export or dump.
Thanks for the note about the functions, this is invaluable!
--On Thursday, July 26, 2001 6:29 PM +0000 Bug Database <php-dev@lists.php.net> wrote:
: ID: 12381
: Updated by: andy
: Reported By: cdaveb@csua.berkeley.edu
: Old Status: Feedback
: Status: Bogus
: Bug Type: Feature/Change Request
: Operating System: Linux
: PHP Version: 4.0.6
: New Comment:
:
: i meant to make this bogus...
:
: Previous Comments:
: ------------------------------------------------------------------------
:
: [2001-07-26 14:27:11] andy@php.net
:
: have you tried something like the serialize and unserialize
: functions?
:
: http://php.net/manual/en/function.serialize.php
: http://php.net/manual/en/function.unserialize.php
:
: ------------------------------------------------------------------------
:
: [2001-07-25 18:30:49] cdaveb@csua.berkeley.edu
:
: 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.
:
:
: ------------------------------------------------------------------------
:
:
:
: ATTENTION! Do NOT reply to this email!
: To reply, use the web interface found at
: http://bugs.php.net/?id=12381&edit=2
-Cari D. Burstein
cdaveb@anybrowser.org
|Ye have enemies? Good, good- that means ye've stood up for || something, sometime in thy life.... -Elminster of Shadowdale | |---------------------------------------------------------------|
| Cari D. Burstein cdaveb@anybrowser.org | | http://www.anybrowser.org/cdaveb/ |