Re: [PHP] Merging Strings

2005-05-03 Thread Jochem Maas
Rolf van de Krol wrote: Hi all, why do result the following two examples in two different value for $month? (1) $current_date = getdate(time()); $month= strval($current_date['year']); $month .= (strlen(strval($current_date['mon'])) == 2) ? $current_date['mon']

[PHP] Merging Strings

2005-05-03 Thread Rolf van de Krol
Hi all, why do result the following two examples in two different value for $month? (1) $current_date = getdate(time()); $month = strval($current_date['year']); $month .= (strlen(strval($current_date['mon'])) == 2)?$current_date['mon']:("0".$current_date['mon']); (2) $current_date = getdate(time()