php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #79058 [ZH] document translation errors with array_merge
Submitted: 2020-01-03 09:54 UTC Modified: 2020-01-03 18:22 UTC
From: xzzll at msn dot cn Assigned:
Status: Open Package: Translation problem
PHP Version: 7.4.1 OS: null
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: xzzll at msn dot cn
New email:
PHP Version: OS:

 

 [2020-01-03 09:54 UTC] xzzll at msn dot cn
Description:
------------
---
From manual page: https://php.net/function.array-merge
---
https://www.php.net/manual/zh/function.array-merge.php

这个页面的描述 "如果只给了一个数组并且该数组是数字索引的,则键名会以连续方式重新索引。" 是错误的,实际上是提供任意数量的数组且为数字索引的键名会以连续方式重新索引

故这句话应该改为 "如果提供的数组存在以数字作为索引的内容,则这项内容的键名会以连续方式重新索引(注:文本[string]类型的数字也会被当作数字索引)"

PS: This error is to fix translation errors in Chinese documents. Please arrange a Chinese document management member for processing


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2020-01-03 10:07 UTC] cmb@php.net
-Summary: Chinese document translation errors +Summary: [ZH] document translation errors
 [2020-01-03 18:22 UTC] requinix@php.net
-Summary: [ZH] document translation errors +Summary: [ZH] document translation errors with array_merge
 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Tue Jun 02 15:01:28 2020 UTC