Why not just do 

$today = date("j/m");

?

Cheers
Jon


-----Original Message-----
From: Daniel Alsén [mailto:[EMAIL PROTECTED]]
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 #
# [EMAIL PROTECTED]  | +46 704 86 14 92 #
# ICQ: 63006462   |                  #


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]


**********************************************************************
'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'

**********************************************************************

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to