note 15836 added to function.array-reverse

From: Date: Thu, 04 Oct 2001 15:13:52 +0000
Subject: note 15836 added to function.array-reverse
Groups: php.notes 
Request: Send a blank email to php-notes+get-18566@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 -- http://www.php.net/manual/en/function.array-reverse.php http://master.php.net/manage/user-notes.php?action=edit+15836 http://master.php.net/manage/user-notes.php?action=delete+15836 http://master.php.net/manage/user-notes.php?action=reject+15836

« previous php.notes (#18566) next »