Finding a value within an array
Posted
#1
(In Topic #1000)
Regular

For example. If I had the following array:
and I was looking for 3, I would want a function to return the value 4.
Or, if I was looking for 6, I'd want it to return the value 1.
Is there a built in function that can do this, or do I have to write a simple FOR EACH loop and do it manually. I know in some languages like PHP they have such functions array_search($needle, $haystack).
Posted
Guru

Posted
Regular

Posted
Regular

1 guest and 0 members have just viewed this.


