Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Facebook Sign In with Google Sign In with OpenID

Categories

We have migrated to a new platform! Please note that you will need to reset your password to log in (your credentials are still in-tact though). Please contact lee@programmersheaven.com if you have questions.
Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

Newbie need some knowledge!!!

kb_Pkb_P Posts: 3Member

Hi there new to this php... new to programming in general, but i've been playing aound the last couple of hours.

My problem is that I am trying to save a bunch of numbers to an array, and then go through the array to find the data i need.

so it would be multidimensional, for example

first element has the properties

200, 1.5, 0.3

the second element would have

250, 2.75, 0.5

the third

300, 4, 0.7

and so on

350, 5.5, 0.9
400, 7.25, 1.2
450, 9, 1.6

etc....

basically come up with this: --

$rc_values = array(
array('200','1.5', '.3'),
array('250','2.75', '0.5'),
array('300','4', '0.7'),
array('350','5.5', '0.9'),

there are about 15 - 20 different values.

I want to search thru the array and retrieve related data??

say i want to find the 3rd value in the array containing the value 200

how would i retrieve the data from the other positions in the array, and how would i start to search for the value 200

please help, head is a little tired now :|

andy


Sign In or Register to comment.