日期格式化PHP但是完整的月份名称

Dar*_*ney 3 php mysql

我需要这个:

12 November, 1997
Run Code Online (Sandbox Code Playgroud)

要重新格式化为:

1997-11-12
Run Code Online (Sandbox Code Playgroud)

包含在MySQL数据库中,但我正在努力完整的月份名称,这可能吗?

谢谢

达伦

小智 10

$tempDate = '2013-06-09';
$day = date('l', strtotime( $tempDate));// will gives you the week day name 
$month = date('jS F Y',strtotime($tempDate));// will format like date 9th June 2013
Run Code Online (Sandbox Code Playgroud)