摘要: The + operator appends elements of remaining keys from the right handed array to the left handed, whereas duplicated keys are NOT overwritten. 今天 再次看 php manual的时候,才知道代码When executed, this script wil... 阅读全文
posted @ 2010-07-23 18:32 浪淘沙(Jeff.Liu) 阅读(641) 评论(0) 推荐(0) 编辑
摘要: 今天 看PPC http://bbs.phpchina.com/thread-171993-1-7.html这个问题。其实关键还是因为 php是弱类型语言,php进行比较的时候 最好还是使用strict方法的。因为这样不但比较两者的值是否一直,还会比较两者的类型是否一直。另外,我们在 控制结构比较两个数值是否一直的时候,也应该尽量使用 === 来代替 ==(当然,这个也根据具体的业务逻辑选用比较合... 阅读全文
posted @ 2010-07-23 16:33 浪淘沙(Jeff.Liu) 阅读(1314) 评论(2) 推荐(0) 编辑
摘要: A string is series of characters. String access and modification by characterCharacters within strings may be accessed and modified by specifying the zero-based offset of the desired character after t... 阅读全文
posted @ 2010-07-23 15:41 浪淘沙(Jeff.Liu) 阅读(410) 评论(0) 推荐(0) 编辑
摘要: 转载自http://www.json.org/json-zh.htmlJSON(JavaScript Object Notation) 是一种轻量级的数据交换格式。易于人阅读和编写。同时也易于机器解析和生成。它基于JavaScript Programming Language, Standard ECMA-262 3rd Edition - December 1999的一个子集。JSON采用完全独... 阅读全文
posted @ 2010-07-23 13:35 浪淘沙(Jeff.Liu) 阅读(366) 评论(1) 推荐(0) 编辑