位置: 编程技术 - 正文

PHP:cal_info()的用法_日历函数(php canal)

编辑:rootadmin
cal_info

推荐整理分享PHP:cal_info()的用法_日历函数(php canal),希望有所帮助,仅作参考,欢迎阅读内容。

文章相关热门搜索词:php callable,php call,php __call,php __callstatic,php callable,php call_user_func_array,php call_user_func,php call_user_func,内容如对您有帮助,希望把文章链接给更多的朋友!

(PHP 4 >= 4.1.0, PHP 5)

cal_info — 返回选定历法的信息

说明 array cal_info ([ int $calendar = -1 ] )

cal_info()返回选定 calendar的作息。

历法信息以一个数组的形式返回,包含的元素有历法名称,历法代码,月份,月份的缩写和单月的最多天数。作为参数的calendar历法名字可以有: 0 or CAL_GREGORIAN - Gregorian Calendar 1 or CAL_JULIAN - Julian Calendar 2 or CAL_JEWISH - Jewish Calendar 3 or CAL_FRENCH - French Revolutionary Calendar

如果没有指定参数calendar,所支持的所有历法将以数组形式返回。

参数 PHP:cal_info()的用法_日历函数(php canal)

calendar

返回信息所指定的历法名称,如果没有指定历法,将返回所有历法。

返回值

更新日志

版本 说明 Since 5.0 参数calendar作为可选项,缺省时默认值为"所有历法"。

范例

Example #1 cal_info() example

<?php$info=cal_info(0);print_r($info);?>

以上例程会输出:

PHP:mdecrypt_generic()的用法_Mcrypt函数 mdecrypt_generic(PHP4=4.0.2,PHP5)mdecrypt_generic解密数据说明stringmdecrypt_generic(resource$td,string$data)解密数据。请注意,由于存在数据补齐的情况,返回字符串的长

PHP:mcrypt_ofb()的用法_Mcrypt函数 mcrypt_ofb(PHP4,PHP5)mcrypt_ofb使用OFB模式加密/解密数据说明stringmcrypt_ofb(int$cipher,string$key,string$data,int$mode,string$iv)stringmcrypt_ofb(string$cipher,string$key,string$data,int$m

PHP:mcrypt_module_self_test()的用法_Mcrypt函数 mcrypt_module_self_test(PHP4=4.0.2,PHP5)mcrypt_module_self_test在指定模块上执行自检说明boolmcrypt_module_self_test(string$algorithm[,string$lib_dir])在指定模块上执行自检。参数

本文链接地址:https://www.jiuchutong.com/biancheng/287395.html 转载请保留说明!

上一篇:PHP:cal_days_in_month()的用法_日历函数

下一篇:PHP:mdecrypt_generic()的用法_Mcrypt函数

免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

鄂ICP备2023003026号

网站地图: 企业信息 工商信息 财税知识 网络常识 编程技术

友情链接: 武汉网站建设 电脑维修 湖南楚通运网络