Thats not what I'm looking for. I want to RETURN either true or false like so:
$date = '7/2/02';
$errReport = checkDate($date);
(this is an error checking function for a date)
I just want to change the variable in the process in one function so that 7-2-02, 7/2/2002, 07/02/02, etc all get changed to 20020702, AND the return value is a 1 (good date for any of these examples) or a zero (and no change in the passed variable).
So your function wouldn't do that. I believe I need to know the NAME of the variable passed, declare it global, and then re-assign it, in this case into a standard date format.
This comes in handy 'cause $HTTP_POST_VARS are writeable and I want to be able to re-configure dates and times passed in a form.
Thanks for your help though.
Sam Fullman
Compass Point Media