php data 函式中用到的一些常量

2021-04-23 01:38:31 字數 858 閱讀 9571

今天在網上找到了一些,記錄下來留著下次參考

date_atom(string)

原子鐘格式(如:2005-08-15t15:52:01+00:00)

date_cookie(string)

http cookies 格式(如:mon, 15 aug 2005 15:52:01 utc)

date_iso8601(string)

iso-8601(如:2005-08-15t15:52:01+0000)

date_rfc822(string)

rfc 822(如:mon, 15 aug 2005 15:52:01 utc)

date_rfc850(string)

rfc 850(如:monday, 15-aug-05 15:52:01 utc)

date_rfc1036(string)

rfc 1036(如:monday, 15-aug-05 15:52:01 utc)

date_rfc1123(string)

rfc 1123(如:mon, 15 aug 2005 15:52:01 utc)

date_rfc2822(string)

rfc 2822(如:mon, 15 aug 2005 15:52:01 +0000)

date_rss(string)

rss(如:mon, 15 aug 2005 15:52:01 utc)

date_w3c(string)

world wide web consortium(如:2005-08-15t15:52:01+00:00)

比如,要輸出乙個rss需要的日期格式,就可以用下面的**簡單實現:

echo date(date_rss);

程式設計中用到的一些演算法

1.取任意位 define bit a,b a b 0x01 a is the variable while b is the bit number 從第0位數起,而不是從第1位數起 2.取十進位制i各位上的數給a n a 0 i 10 a 1 i 100 10 a 2 i 1000 100 3.取...

競賽中用到的一些STL

memset a,0,sizeof a 陣列初始化為0 memset b,1,sizeof b 陣列初始化為 1不使用cmp 在上公升序列中找第乙個比k大的 使用cmp 在下降序列中找第乙個比k小的 兩者預設都是從前向後找,lower更靠前,找到的可以等於k bool cmp int a,int b...

專案中用到的一些函式,9 26份

這裡的list函式 list 函式用於在一次操作中給一組變數賦值。作用 userservice getsmsrecordlist query,offset,pagesize 的返回值是乙個陣列 含有兩個元素 list獲取第乙個元素,totalcount獲取第二個元素 list list,totalc...