My apologies if this has been covered, I did a search but nothing came up.
I have a DATE column in a MySQL database (format yyyy-mm-dd), I would like to be able to extract each component of the date and make it a seperate variable in PHP. This would end up with
$day = "dd"
$mon = "mm"
$yea = "yyyy"
I hoped there would be something similar to Perl's regular expressions or maybe there would be specific functions for splitting date strings but, so far, no joy.
Thanks for any help
Chris