Re: Any ideas on combining arrays????
| From: | Michael Virnstein | Date: | Fri, 05 Apr 2002 17:21:12 +0000 |
| Subject: | Re: Any ideas on combining arrays???? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-91750@lists.php.net to get a copy of this message | ||
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" <remery@excel.com> schrieb im Newsbeitrag
news:EAA093B474ABD311A71E00508B5FE08308D8F876@adntex03.us.excel.com...
> 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