Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
进行 SQL 查询后, 如何将月份名称从 like October(English) 更改为(Danish)。Oktober
October
Oktober
询问: SELECT id, name, date_format(timestamp, '%M %e, %Y %l:%i %p') real_timestamp FROM comments WHERE active='yes'
SELECT id, name, date_format(timestamp, '%M %e, %Y %l:%i %p') real_timestamp FROM comments WHERE active='yes'
简单地使用str_replace函数
str_replace
$result = str_replace("October", "Oktober", $result);
见str_replace