note 21286 added to function.substr

From: Date: Mon, 06 May 2002 23:08:08 +0000
Subject: note 21286 added to function.substr
Groups: php.notes 
Request: Send a blank email to php-notes+get-30272@lists.php.net to get a copy of this message
joe@dirte.com, there is a cleaner way to do the following code. $date = "1998-07-16"; $array = explode('-', $date); $year = $array[0]; $month = $array[1]; $day = $array[2]; $newdate = "$array[2]-$array[1]-$array[0]"; -- http://www.php.net/manual/en/function.substr.php http://master.php.net/manage/user-notes.php?action=edit+21286 http://master.php.net/manage/user-notes.php?action=delete+21286 http://master.php.net/manage/user-notes.php?action=reject+21286

« previous php.notes (#30272) next »