Re: [PHP] Any ideas on combining arrays????
perhaps: $FFR = array("TU4R" => array("data" => array(array("count" => "TU4R is 0"), array("count" => "TU4R is 1"), array("count" => "TU4R is 2"))), "PH01" => array("data" => array(array("count" => "PH01 is 0"; print_r($FFR); "Rick Emery" <[EMAIL PROTECTED]> schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > 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:[EMAIL PROTECTED]] > Sent: Wednesday, April 03, 2002 11:15 AM > To: [EMAIL PROTECTED] > 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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Any ideas on combining arrays????
I'm not sure I understand what problem you're trying to solve. It looks something like the number of times a given piece of data occurs per user? Where does the data come from and what are you trying to accomplish? > 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 -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Any ideas on combining arrays????
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:[EMAIL PROTECTED]] Sent: Wednesday, April 03, 2002 11:15 AM To: [EMAIL PROTECTED] 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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[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