diff --git a/reference/filesystem/functions/dirname.xml b/reference/filesystem/functions/dirname.xml index e2cf0a354f..a5e8aa42ea 100755 --- a/reference/filesystem/functions/dirname.xml +++ b/reference/filesystem/functions/dirname.xml @@ -1,7 +1,7 @@ - - + + dirname @@ -96,30 +96,6 @@ dirname('C:\\'); // Will return 'C:\' on Windows and '.' on *nix systems. - - - &reftitle.changelog; - - - - - - &Version; - &Description; - - - - - 7.0.0 - - 添加可选的 levels 参数。 - - - - - - - &reftitle.examples; diff --git a/reference/filesystem/functions/file.xml b/reference/filesystem/functions/file.xml index 36390dfc47..1d69847042 100755 --- a/reference/filesystem/functions/file.xml +++ b/reference/filesystem/functions/file.xml @@ -1,6 +1,6 @@ - + @@ -62,7 +62,7 @@ - 省略数组中每个元素末尾的换行符 + 省略数组中每个元素末尾的换行符。 @@ -72,7 +72,7 @@ - 跳过空行 + 跳过空行。 @@ -82,7 +82,7 @@ - 不使用默认的上下文 + 不使用默认的上下文。 diff --git a/reference/filesystem/functions/glob.xml b/reference/filesystem/functions/glob.xml index f330141956..4343ab88c3 100644 --- a/reference/filesystem/functions/glob.xml +++ b/reference/filesystem/functions/glob.xml @@ -1,6 +1,6 @@ - + @@ -57,6 +57,12 @@ 即匹配不在这组字符中的任意字符。 + + + {a,b,c} - 当使用 GLOB_BRACE + 标志时,匹配以逗号分隔的字符串组中的一个字符串。 + + \ - 只要没有使用 GLOB_NOESCAPE 标记,该字符会转义后面的字符。 diff --git a/reference/filesystem/functions/is-link.xml b/reference/filesystem/functions/is-link.xml index 182b7f0132..d3cd4d6aea 100644 --- a/reference/filesystem/functions/is-link.xml +++ b/reference/filesystem/functions/is-link.xml @@ -1,6 +1,6 @@ - + @@ -81,6 +81,7 @@ if (is_link($link)) { is_dir is_file readlink + symlink diff --git a/reference/filesystem/functions/symlink.xml b/reference/filesystem/functions/symlink.xml index aaa48d0b21..993d19e572 100644 --- a/reference/filesystem/functions/symlink.xml +++ b/reference/filesystem/functions/symlink.xml @@ -1,7 +1,7 @@ - - + + symlink @@ -86,6 +86,7 @@ echo readlink($link); &reftitle.seealso; + is_link link readlink linkinfo diff --git a/reference/filter/functions/filter-has-var.xml b/reference/filter/functions/filter-has-var.xml index cfcbd96c25..146098fcb8 100644 --- a/reference/filter/functions/filter-has-var.xml +++ b/reference/filter/functions/filter-has-var.xml @@ -1,7 +1,7 @@ - - + + diff --git a/reference/hash/functions/hash-file.xml b/reference/hash/functions/hash-file.xml index e12d4f95df..fad404fe22 100644 --- a/reference/hash/functions/hash-file.xml +++ b/reference/hash/functions/hash-file.xml @@ -1,6 +1,6 @@ - + @@ -65,8 +65,8 @@ &reftitle.returnvalues; - 如果 binary 设置为 true, 则返回原始二进制数据表示的信息摘要, - 否则返回十六进制小写字符串格式表示的信息摘要。 + 返回的字符串包含计算出的消息摘要,默认为小写十六进制字符串, + 如果 binary 设置为 true,则返回原始二进制表示,&return.falseforfailure;。 diff --git a/reference/image/functions/imagewebp.xml b/reference/image/functions/imagewebp.xml index a9832f52ff..d9feeaafb4 100644 --- a/reference/image/functions/imagewebp.xml +++ b/reference/image/functions/imagewebp.xml @@ -1,6 +1,6 @@ - + @@ -37,6 +37,7 @@ quality 范围从 0(最低质量,最小文件体积)到 100(最好质量, 最大文件体积)。 + 如果设置为 -1,则使用默认值 80 diff --git a/reference/lua/lua/construct.xml b/reference/lua/lua/construct.xml index b760f3c078..801dcf9cf4 100644 --- a/reference/lua/lua/construct.xml +++ b/reference/lua/lua/construct.xml @@ -1,8 +1,7 @@ - - - + + Lua::__construct @@ -13,7 +12,7 @@ &reftitle.description; public Lua::__construct - stringlua_script_fileNULL + stringlua_script_fileNULL diff --git a/reference/random/functions/mt-rand.xml b/reference/random/functions/mt-rand.xml index 1dc3369474..1b37d25c08 100644 --- a/reference/random/functions/mt-rand.xml +++ b/reference/random/functions/mt-rand.xml @@ -1,6 +1,6 @@ - + @@ -60,11 +60,21 @@ &reftitle.returnvalues; - 返回 min(或者 0)到 max(或者是到 - mt_getrandmax,包含这个值)之间的随机整数,如果 - max 小于 min 则返回 &false;。 + 返回的随机整数值介于 min(或 0)和 + max(或 mt_getrandmax,包括两端)。 + + &reftitle.errors; + + + + 如果 max 小于 min,则会抛出 + ValueError 异常。 + + + + &reftitle.changelog; @@ -77,6 +87,13 @@ + + 8.0.0 + + 如果 max 小于 min,则会抛出 + ValueError 异常。之前会抛出 E_WARNING 错误,并且函数返回 &false;。 + + 7.2.0 diff --git a/reference/random/functions/rand.xml b/reference/random/functions/rand.xml index b875bc7d43..67804bb131 100644 --- a/reference/random/functions/rand.xml +++ b/reference/random/functions/rand.xml @@ -1,6 +1,6 @@ - + @@ -28,8 +28,8 @@ &caution.cryptographically-insecure; - 在某些平台下(例如 Windows)getrandmax - 只有 32767。如果需要的范围大于 32767,那么指定 min + 在 PHP 7.1.0 之前,getrandmax + 在某些平台(如 Windows)上仅为 32767。如果需要的范围大于 32767,那么指定 minmax 参数就可以生成更大的数了,或者考虑用 mt_rand 来替代之。 diff --git a/reference/strings/book.xml b/reference/strings/book.xml index 2f254d2387..50346e9644 100644 --- a/reference/strings/book.xml +++ b/reference/strings/book.xml @@ -1,8 +1,8 @@ - + - + 字符串