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']
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()
2 matches
Mail list logo