Re: month
| From: | Justin French | Date: | Tue, 01 Apr 2003 10:44:02 +0000 |
| Subject: | Re: month | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-141807@lists.php.net to get a copy of this message | ||
on 01/04/03 10:31 PM, Jason Wong (php-general@gremlins.biz) wrote:
> I don't want to be awkward, but wouldn't $m be holding the required info
> already? -- ignoring the fact that you have an invalid date.
yes. I just re-read the OP... *slaps forehead*.
<?
$date = '2002-03-18';
list($y,$d,$m) = explode('-',$date);
echo $m;
?>
Justin