php3-list | 199903
Date: 03/31/99
- Next message: Manuel Lemos: "Re: [PHP3] Error Handling Questions"
- Previous message: Stephen Benjamin: "Re: [PHP3] Phorum status?"
- In reply to: Chad Cunningham: "Re: [PHP3] Array Question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Yeah that was what I meant. Honest! :)
> -----Original Message-----
> From: Chad Cunningham [mailto:ccunning <email protected>]
> Sent: Thursday, 1 April 1999 14:39
> To: steve <email protected>
> Cc: Php3
> Subject: Re: [PHP3] Array Question
>
>
> Best bet is to do something like:
>
> $array["a"] = 1;
> $array["b"] = "c";
> $array["c"] = "g8dh";
>
> and then to get the stuff back do:
>
> while (list($key, $val) = each($array)) {
> $$key = $val;
> }
>
>
> On Wed, 31 Mar 1999, Steve Douville wrote:
>
> > Okay...how do I do this:
> >
> > $a=1;
> > $b="c";
> > $c="g8dh";
> >
> > I want to send these variables (only more) to a class to be
> processed. but I
> > want to send them as an array and then break them out and be able to
> > recognize the key,value pairs. I know that I can implode them,
> put them into
> > the array, and explode them from the array. But then how do I keep the
> > variable names?
> >
> > Thanks,
> > Steve
> >
> >
> > --
> > PHP 3 Mailing List http://www.php.net/
> > To unsubscribe send an empty message to php3-unsubscribe <email protected>
> > To subscribe to the digest list: php3-digest-subscribe <email protected>
> > For help: php3-help <email protected> Archive:
http://www.php.net/mailsearch.php3
> List administrator: zeev-list-admin <email protected>
>
>
>
-- PHP 3 Mailing List http://www.php.net/ To unsubscribe send an empty message to php3-unsubscribe <email protected> To subscribe to the digest list: php3-digest-subscribe <email protected> For help: php3-help <email protected> Archive: http://www.php.net/mailsearch.php3 List administrator: zeev-list-admin <email protected>-- PHP 3 Mailing List http://www.php.net/ To unsubscribe send an empty message to php3-unsubscribe <email protected> To subscribe to the digest list: php3-digest-subscribe <email protected> For help: php3-help <email protected> Archive: http://www.php.net/mailsearch.php3 List administrator: zeev-list-admin <email protected>
- Next message: Manuel Lemos: "Re: [PHP3] Error Handling Questions"
- Previous message: Stephen Benjamin: "Re: [PHP3] Phorum status?"
- In reply to: Chad Cunningham: "Re: [PHP3] Array Question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

