From ae892c802cbd2d62cd205fabe36f303f326683b9 Mon Sep 17 00:00:00 2001 From: Jakukyo Friel Date: Fri, 17 Jan 2014 14:38:24 +0800 Subject: php: typo --- php.html.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/php.html.markdown b/php.html.markdown index c3317d59..e1bb86a0 100644 --- a/php.html.markdown +++ b/php.html.markdown @@ -212,7 +212,7 @@ assert($c >= $d); // The following will only be true if the values match and are the same type. assert($c === $d); assert($a !== $d); -assert(1 == '1'); +assert(1 === '1'); assert(1 !== '1'); // Variables can be converted between types, depending on their usage. -- cgit v1.2.3 From d2a34d3390e131f738f6f54b95a1101966f4ea5d Mon Sep 17 00:00:00 2001 From: Jakukyo Friel Date: Fri, 17 Jan 2014 14:47:54 +0800 Subject: php: typo --- zh-cn/php-cn.html.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zh-cn/php-cn.html.markdown b/zh-cn/php-cn.html.markdown index c6ebb515..c22d8e12 100644 --- a/zh-cn/php-cn.html.markdown +++ b/zh-cn/php-cn.html.markdown @@ -180,7 +180,7 @@ assert($c >= $d); // 下面的比较只有在类型相同、值相同的情况下才为真 assert($c === $d); assert($a !== $d); -assert(1 == '1'); +assert(1 === '1'); assert(1 !== '1'); // 变量可以根据其使用来进行类型转换 -- cgit v1.2.3 From 6c2210e92172b0a5cb5ab9eaf09cbd60a6d73c13 Mon Sep 17 00:00:00 2001 From: Jakukyo Friel Date: Fri, 17 Jan 2014 14:50:29 +0800 Subject: php: typo --- zh-cn/php-cn.html.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zh-cn/php-cn.html.markdown b/zh-cn/php-cn.html.markdown index c6ebb515..9c344ef6 100644 --- a/zh-cn/php-cn.html.markdown +++ b/zh-cn/php-cn.html.markdown @@ -243,7 +243,7 @@ if ($x === '0') { -// 下面的语法常用语模板中: +// 下面的语法常用于模板中: ?> -- cgit v1.2.3 From f47de5a0972de32050cd1fbc7be0ec8eb9f51636 Mon Sep 17 00:00:00 2001 From: Jakukyo Friel Date: Fri, 17 Jan 2014 15:12:05 +0800 Subject: php:typo --- zh-cn/php-cn.html.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zh-cn/php-cn.html.markdown b/zh-cn/php-cn.html.markdown index c6ebb515..e29b6771 100644 --- a/zh-cn/php-cn.html.markdown +++ b/zh-cn/php-cn.html.markdown @@ -333,7 +333,7 @@ function my_function () { echo my_function(); // => "Hello" // 函数名需要以字母或者下划线开头, -// 后面可以跟着任意的字幕、下划线、数字. +// 后面可以跟着任意的字母、下划线、数字. function add ($x, $y = 1) { // $y 是可选参数,默认值为 1 $result = $x + $y; -- cgit v1.2.3