初中正確的態(tài)度作文
1、用php打印出前一天的時間格式是2006-5-10 22:21:21(2分)

echo date("Y-m-d G:i:s",strtotime("-1 day"));
2、echo(),print(),print_r()的區(qū)別(3分)
echo()是一個php語句,所以沒有返回值,能打印簡單的數(shù)據(jù)。
print()是一個函數(shù),有返回值,能打印簡單的數(shù)據(jù)。
print_r()是一個函數(shù),能打印復(fù)雜的(mix)數(shù)據(jù)。
如:
'wangking','qq'=>'123456');print_r($arr);?>
運行結(jié)果:
hello word
the value is 1
Array ( [name] => wangking [qq] => 123456 ) ......
3、能夠使html和php分離開使用的模板(1分)
smarty模板
4、使用哪些工具進行版本控制?(1分)
TortoiseSVN
6、如何實現(xiàn)字符串翻轉(zhuǎn)?(3分)
strrev("Hello world!");
【初中正確的態(tài)度作文】相關(guān)文章:
正確的態(tài)度作文(精選17篇)07-03
初中態(tài)度作文12-02
生活的態(tài)度初中作文04-10
我們要用正確的態(tài)度對待挫折作文(精選41篇)06-19
態(tài)度初中作文(精選5篇)02-06
態(tài)度決定命運初中作文08-20
初中以態(tài)度為話題作文02-13
[必備]態(tài)度決定命運初中作文10-16
態(tài)度決定人生初中作文02-21
態(tài)度決定一切作文初中11-26
- 相關(guān)推薦