Need Coding Help With getdate()
| From: | Guru Geek | Date: | Fri, 24 Jan 2003 16:18:04 +0000 |
| Subject: | Need Coding Help With getdate() | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-133004@lists.php.net to get a copy of this message | ||
Hello,
I'm trying to use getdate() and then create a numeric value based on
putting the month (numeric), the date, and the year all together, side
by side in one variable.
Here's my code:
<?php
$today = getdate();
$month = $today['mon'];
$mday = $today['mday'];
$year = $today['year'];
$date = $today['mon'.'mday'.'year'];
?>
But all I get is a blank when I look at $date in the browser. Any idea
why that is?
Thanks in advance,
Roger