Jump to content

Finding array within range


sowna

Recommended Posts

Hi i have two arrays, activity and feed..

 

contains 100 arrays,

$activity = array(0,1,2....,100);

 

contains 5 arrays

$feed = array(100,50,25,12,75);

 

I have 7 ranges, (0 -15),(15-30),(30-45),...(90-105)

now i need to compare feed array with activity array to find in which range it was...

 

Example,

 

$feed[0] = 100, then it is in (90-105) range

$feed[3] = 12, then it is in (0-15) range..

...

 

how to find this range?? plz help me..

 

 

 

 

Link to comment
https://forums.phpfreaks.com/topic/255865-finding-array-within-range/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.