常用函数-mysql2date()

0条评论

说明

将mysql格式的日期翻译成php函数date()可接收的格式

用法

mysql2date($dateformatstring, $mysqlstring, $translate = true)

其中

$dateformatstring——规定的输入格式。php函数date()可接收的格式。

$mysqlstring——输入的字符串,可能是mysql数据库的输出值。

$translate (可选,默认为true)——将格式转换为本地。

 

 

发表新评论

此内容将保密,不会被其他人看见。
  • 自动将网址与电子邮件地址转变为链接。
  • 允许HTML标签:<a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • 自动断行和分段。

更多关於格式化选项的信息

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Enter the characters shown in the image.