RE: [PHP] Any ideas on combining arrays????
| From: | Rick Emery | Date: | Wed, 03 Apr 2002 19:20:02 +0000 |
| Subject: | RE: [PHP] Any ideas on combining arrays???? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-91366@lists.php.net to get a copy of this message | ||
ok...so what problem are you having? what's the error?
your code worked for me, i.e., it compiled and executed
-----Original Message-----
From: Scott Fletcher [mailto:scott@abcoa.com]
Sent: Wednesday, April 03, 2002 11:15 AM
To: php-general@lists.php.net
Subject: [PHP] Any ideas on combining arrays????
Hi!
Need some ideas on combining some arrays into one! I have array for
data and other array for counter. How do I make an array that would show
different data for each counter number?
-- clip --
$FFR = array (
"TU4R" => array( "data" => "", "count"
=> "" ),
"PH01" => array( "data" => "", "count"
=> "" ),
);
-- clip --
The response should look something like this when I pick the correct
data and correct count;
$FFR["TU4R"]["data"]["0"]["count"] = "TU4R is
0";
$FFR["TU4R"]["data"]["1"]["count"] = "TU4R is
1";
$FFR["TU4R"]["data"]["2"]["count"] = "TU4R is
2";
I tried to do something like this but it doesn't work. I have been
working for 2 days trying to figure it out. I appreciate any help you can
provide for me.
Thanks,
Scott
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php