In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] (Dan Lowe) wrote:
> > $invdate = "14.8.2001";
> > echo "$invdate\n";
> > list($day, $month, $year) = split(".", $invdate);
> > echo "$year-$month-$day";
> > ---
> > Somehow, the second echo outputs only "--" as it should be "2001-8-14".
> > Any i
Previously, Ville Mattila said:
> ---
> $invdate = "14.8.2001";
> echo "$invdate\n";
> list($day, $month, $year) = split(".", $invdate);
> echo "$year-$month-$day";
> ---
> Somehow, the second echo outputs only "--" as it should be "2001-8-14".
> Any idea why this happen and how this could be avoi
Hi there,
First the code:
---
$invdate = "14.8.2001";
echo "$invdate\n";
list($day, $month, $year) = split(".", $invdate);
echo "$year-$month-$day";
---
Somehow, the second echo outputs only "--" as it should be "2001-8-14". Any idea why
this happen and how this could be avoided?
Thanks,
- Vil
3 matches
Mail list logo