年月日 替换为‘-’

$ss = str_replace(array(
 '年',
 '月',
 '日'
 ), array(
 '-',
'-',
''
 ), $datetime);

原文地址:https://www.cnblogs.com/sunzhenyong/p/4233953.html