summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--php.html.markdown2
-rw-r--r--zh-cn/php-cn.html.markdown2
2 files changed, 2 insertions, 2 deletions
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.
diff --git a/zh-cn/php-cn.html.markdown b/zh-cn/php-cn.html.markdown
index 9c344ef6..8a34213c 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');
// 变量可以根据其使用来进行类型转换