RE: [PHP] Combining strings?
| From: | Jon Haworth | Date: | Wed, 19 Sep 2001 12:09:41 +0000 |
| Subject: | RE: [PHP] Combining strings? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-67825@lists.php.net to get a copy of this message | ||
Why not just do
$today = date("j/m");
?
Cheers
Jon
-----Original Message-----
From: Daniel Alsén [mailto:d@mindbash.com]
Sent: 19 September 2001 12:55
To: php
Subject: [PHP] Combining strings?
Hi,
i was trying to figure this out myself. But since the php-manual is down...
I want to create a string with todays date and month in the format day/month
(19/9).
If i do:
$date_time_array = getdate (time());
$date = $date_time_array[ "mday"];
$month = $date_time_array[ "mon"];
I get the day and month in numbers. But how do i join $date and $month and
put a / in between them in a new string?
Regards
# Daniel Alsén | www.mindbash.com #
# d@mindbash.com | +46 704 86 14 92 #
# ICQ: 63006462 | #
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
For additional commands, e-mail: php-general-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net
**********************************************************************
'The information included in this Email is of a confidential nature and isi
ntended only for the addressee. If you are not the intended addressee,
any disclosure, copying or distribution by you is prohibited and may be
unlawful. Disclosure to any party other than the addressee, whether
inadvertent or otherwise is not intended to waive privilege or confidentiality'
**********************************************************************