Page 1 of 1

How to find data in a array of dates

Posted: Fri Jun 04, 2010 8:07 am
by eshban
Hi,

I need to search one date in array of date i.e.

ArrayofDates = { ‘12/05/2010’, ‘20/05/2010’, ’25/05/2010’ }

Search Able Date = ‘16/05/2010’

If we search “Search Able Date” i.e. ‘16/05/2010’ in “ArrayofDates” array and if record exists then it should tell this.

Kindly help that how to do this

Regards,
Eshban

Re: How to find data in a array of dates

Posted: Fri Jun 04, 2010 8:17 am
by markusn00b
Have a look at in_array().

Mark.