Converting MySQL Date String to Separate Day, Month and Year Strings
Use the function list():
list ($year, $month, $day) = split ("-", $date);
echo $year;
echo $month;
echo $year;
This will output:
2008
09
25
list ($year, $month, $day) = split ("-", $date);
echo $year;
echo $month;
echo $year;
This will output:
2008
09
25


0 Comments:
Post a Comment
<< Home