Hi

$newstring = $date . "/" . $month;


Girish

----- Original Message -----
From: "Daniel Alsén" <[EMAIL PROTECTED]>
To: "php" <[EMAIL PROTECTED]>
Sent: Wednesday, September 19, 2001 12:54 PM
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]
>


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