Re: find a value

2006-02-08 Thread Jimmy
Adriano Allora wrote: Hi all, is there a way to find a value in an array without a foreach loop? thank you all a lot, alladr |^|_|^|_|^| |^|_|^|_|^| | | | | | | | | | |*\_/*\_/*\_/*\_/*\_/* | | | | | | | | | http://www.e-allora.net | | | | | ** Hi Adr

Re: find a value

2006-02-08 Thread Jeff Pang
If you just want to get a function to do that,I think the 'grep' should be fine.But it is essentially a foreach loop. But you can get things more convenient by translating the array to hash and use the 'exist' function. -Original Message- >From: Adriano Allora <[EMAIL PROTECTED]> >Sent: