note 15836 deleted from function.array-reverse by irc-html
| From: | irc-html@php.net | Date: | Sat, 19 Jan 2002 21:09:25 +0000 |
| Subject: | note 15836 deleted from function.array-reverse by irc-html | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-25474@lists.php.net to get a copy of this message | ||
to convert a date as year/month/day, the same as mysql database default to day/month/year try this
put the value year-month-day to the variable $date and...
$date = explode('-', $date);
$date = array_reverse($date);
$date = implode('-', $date);
now $date is day-month-year