Re: Combining strings?
| From: | Girish Nath | Date: | Wed, 19 Sep 2001 12:09:23 +0000 |
| Subject: | Re: Combining strings? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-67826@lists.php.net to get a copy of this message | ||
Hi
$newstring = $date . "/" . $month;
Girish
----- Original Message -----
From: "Daniel Alsén" <d@mindbash.com>
To: "php" <php-general@lists.php.net>
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 #
> # 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
>