php3-list | 199903
Date: 03/31/99
- Next message: Stephen Benjamin: "Re: [PHP3] Phorum status?"
- Previous message: Graeme Merrall: "RE: [PHP3] Array Question"
- In reply to: Steve Douville: "[PHP3] Array Question"
- Next in thread: Graeme Merrall: "RE: [PHP3] Array Question"
- Reply: Graeme Merrall: "RE: [PHP3] Array Question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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>
- Next message: Stephen Benjamin: "Re: [PHP3] Phorum status?"
- Previous message: Graeme Merrall: "RE: [PHP3] Array Question"
- In reply to: Steve Douville: "[PHP3] Array Question"
- Next in thread: Graeme Merrall: "RE: [PHP3] Array Question"
- Reply: Graeme Merrall: "RE: [PHP3] Array Question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

