Re: Need help accessing the key array. [message #185489 is a reply to message #185488] |
Fri, 04 April 2014 01:11 |
Jerry Stuckle
Messages: 2598 Registered: September 2010
Karma:
|
Senior Member |
|
|
On 4/3/2014 5:20 PM, Kevin Burton wrote:
> Where does he say the the array was generated by an outside source specifically 'OP' in his code? He says:
>
> How to access the $rates array to echo the associated rate of
> "animal" => 1 and "color" => 2 ? (which is 30),
> should i re-designed the $rates array?
>
> And
>
> Hi, what I am trying to do is to receive animal variable and color
> variable from the user, and finally display associated rate for the
> input animal and input.
>
> I'm looking for any ways rather than looping through the $rates
> array, is there any possible ways?
>
> Thanks.
>
I didn't claim he did. YOU did. I agreed with others he should change
the format of the array. You're the only one who created a bunch of
unnecessary code to complicate a simple process.
And don't top post.
--
==================
Remove the "x" from my email address
Jerry Stuckle
jstucklex(at)attglobal(dot)net
==================
|
|
|