Tinkered with it enough to know the REGEX part does not work, but gives "Array to string" conversion errors.
Anyway I need to do this on arrays where the value is 3 to 4 levels deep and the key must be accurate, so nesting and/or recalling of the function is necessary if the array value from "foreach ($myarray as $key => $value) is itself an array.
My search must work for searching substrings of the values similar to the SQL ==> field LIKE '%value%' <==.
In particular, I need to find today's date in a datetime field that MySQL has put into an array.
I need the Keys for this and or each occurance so I can accurately pull the data I need to push into another array being written to and Excel report.
All help appreciated!
Last edited by OldManRiver; Dec 13, 2011 at 12:35.
Reason: Lost Data and Formatting
Are you asking this because you cannot influence Mysql to select matching dates in the database?
If you are then you might want to show us the sql statements which are generating these arrays.
If you are not, then you could show some example arrays - exact examples of what you have got - and what you want to end up with (obfuscate or remove anything which might be commercially valuable or too revealing of course).