摘要:
nl2br:ucfirst/ucwords: 阅读全文
posted @ 2014-09-15 12:01
valentine is me
阅读(166)
评论(0)
推荐(0)
摘要:
使用range函数可以自动创建有规律的数组range(1,10,2); 起始,结束,步进值range('a','z'); 阅读全文
posted @ 2014-09-15 11:17
valentine is me
阅读(157)
评论(0)
推荐(0)
摘要:
比如在windos中,使用`command`,来调用系统命令输出结果: 阅读全文
posted @ 2014-09-15 10:22
valentine is me
阅读(128)
评论(0)
推荐(0)
摘要:
使用@抑制住警告,可做出提示处理$file="C:\\1.txt";@fp=fopen($file,'r');// if the file is not exist, it won't throw an exception//handle the exception manuallyif(!fp)... 阅读全文
posted @ 2014-09-15 10:06
valentine is me
阅读(118)
评论(0)
推荐(0)
摘要:
方便的对变量进行运算$a+=$b; //$a=$a+$b$a-=$b;$a*=$b;$a/=$b;$a%=$b;//求余$a.=$b;//$a=$a.$b; 阅读全文
posted @ 2014-09-15 09:56
valentine is me
阅读(122)
评论(0)
推荐(0)
摘要:
动态的改变变量名称:$varname='bookPrice';$$varname=5;//等价于$bookPrice=5;问了问别人说用于字符串拼接,先记下来:$book='C++';$$book="10 yuan";echo $book." ".${$book}; 阅读全文
posted @ 2014-09-15 09:49
valentine is me
阅读(147)
评论(0)
推荐(0)

浙公网安备 33010602011771号