Jump to content
Larry Ullman's Book Forums

Linear Relationship Of Array Values


Recommended Posts

Hello all;

 

I have the following arrays:

 

volume_array=(100,200,350,400); and

height_array=(1,5,8,10);

 

a height_array value corresponds to a value in the volume_array with the same key.

 

Does someone know how to efficiently get the corresponding volume for a height of 7 assuming a linear relationship?

 

I have been looking at the php array functions for sometime now without any luck.

Link to comment
Share on other sites

 Share

×
×
  • Create New...