I have an array as follows:
Array (
[0] => Array (
...
)
[41] => Array (
[name] => London
[company] => nhyt6t
[top25_1] => 8.75912088
)
[42] => Array (
[name] => Manchester
[company] => gtr4rf
[top25_1] => 6.56758398
)
[43] => Array (
[name] => Leeds
[company] => de3wsd6
[top25_1] => 7.58675398
)
[44] => Array (
[name] => Liverpool
[company] => fe4rf56
[top25_2] => 4.5697965
)
)
Is it possible (within PHP) to search the array and bring back the Array Index for the Start and End of top25_1 (Note: they are always grouped in a sequence) - so in this instance:
$start = 41;
$end = 43;
The position of top25_1 varies each time the array is generated, hence the need to search.
Any advice, feedback and assistance welcomed.
top25_99interrupt the sequence?Trueis the key exists, I need theIndex Valuereturned.