If you do a var_dump, you'll see that the output is in integers.
foreach(range(3, 10) as $number) {
var_dump($number);}
outputs:
int(3) int(4) int(5) int(6) int(7) int(8) int(9) int(10)
Doing the 'foreach' has set the array cursor at the end of the array: '10' so trying to find eg '5' doesn't work - it will find the '10' tho.
But I don't know how to reset the array cursor:
reset()
cos the output isn't an array....?? 😕