Hello, CrossWalkCentral.

You wrote 23 сентября 2002 г., 2:05:38:

So, explode() requires a seperator as a first argument.
You code is

$date= "10-01-2002";
list ($day, $month, $year) = explode("-", $date);
echo "$year-$month-$day";

See PHP manual at http://www.php.net/manual/en/function.explode.php

C> What if
C> $date="10-02-2002";

C> I tried it this way and the explode causes problems with the - in it
C> What would be the best way to deal with this should i just parse out the -?


www.pskov.ru                    webmaster|programmer|DBA
www.invest.pskov.ru
www.education.pskov.ru
-- 
Best Regards,
Andrey                          mailto:[EMAIL PROTECTED]



-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to