summaryrefslogtreecommitdiffhomepage
path: root/zh-cn/php-cn.html.markdown
diff options
context:
space:
mode:
authorAdam Bard <github@adambard.com>2014-01-23 08:42:06 -0800
committerAdam Bard <github@adambard.com>2014-01-23 08:42:06 -0800
commitbb7d69154d2ed3afae1a415942dd59646b65a2d5 (patch)
tree62162307f8cccf8a462cbcb2c2122c18df638c44 /zh-cn/php-cn.html.markdown
parent0524f0479f80943c8ab757af75e1dc2e3456f5ac (diff)
parentbc1571fe271b0a4823a564a303ddc08bf570c12b (diff)
Merge pull request #496 from weakish/master
typo
Diffstat (limited to 'zh-cn/php-cn.html.markdown')
-rw-r--r--zh-cn/php-cn.html.markdown6
1 files changed, 3 insertions, 3 deletions
diff --git a/zh-cn/php-cn.html.markdown b/zh-cn/php-cn.html.markdown
index c6ebb515..24939681 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');
// 变量可以根据其使用来进行类型转换
@@ -243,7 +243,7 @@ if ($x === '0') {
-// 下面的语法常用语模板中:
+// 下面的语法常用于模板中:
?>
<?php if ($x): ?>
@@ -333,7 +333,7 @@ function my_function () {
echo my_function(); // => "Hello"
// 函数名需要以字母或者下划线开头,
-// 后面可以跟着任意的字幕、下划线、数字.
+// 后面可以跟着任意的字母、下划线、数字.
function add ($x, $y = 1) { // $y 是可选参数,默认值为 1
$result = $x + $y;