鱼见海资源网最新教程:
介绍
single_month_title() 用于返回“月”、“年”值,在date.php的archive页面,其他页面不支持。
使用
默认
参数
prefix
(string) (optional) 标题前返回值
Default: None
display
(boolean) (optional) Display the title (TRUE), or return the title to be used in PHP (FALSE).
Default: TRUE
返回
The generated title will be:
prefix + MONTH + prefix + YEAR
If prefix parameter is ‘*’, an example would be:
*February*2004
示例
月份和年换行:
') ?>
December
2004
使用 $my_month 变量
Returns the title, which is assigned to the $my_month variable. The variable’s value is then displayed with the PHP echo command.
文章来源于互联网
© 版权声明
温馨提示:本站知识付费,提供的一切软件、教程和内容信息都来自网络收集整理,仅限用于学习和研究目的;不得将上述内容用于商业或者非法用途,否则,一切后果请用户自负,版权争议与本站无关。用户必须在下载后的24个小时之内,从您的电脑或手机中彻底删除上述内容。如果您喜欢该程序和内容,请支持正版,购买注册,得到更好的正版服务。我们非常重视版权问题,如有侵权请邮件与我们联系处理。敬请谅解!
THE END
暂无评论内容