Doc #77164 [Opn->Ver]: Array function document errorï¼array_key_first
| From: | cmb@php.net | Date: | Thu, 15 Nov 2018 16:12:47 +0000 |
| Subject: | Doc #77164 [Opn->Ver]: Array function document errorï¼array_key_first | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-16141@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=77164&edit=1
ID: 77164
Updated by: cmb@php.net
Reported by: 1354322083 at qq dot com
Summary: Array function document errorï¼array_key_first
-Status: Open
+Status: Verified
Type: Documentation Problem
-Package: PHP Language Specification
+Package: Arrays related
Operating System: Linux/Windows
PHP Version: 7.3.0RC5
-Assigned To:
+Assigned To: cmb
Block user comment: N
Private report: N
Previous Comments:
------------------------------------------------------------------------
[2018-11-15 15:38:28] 1354322083 at qq dot com
Description:
------------
---
From manual page: https://php.net/function.array-key-first
---
This function document examples:
<?php
$array = ['a' => 1, 'b' => 2, 'c' => 3];
$firstKey = array_key_first($array);
var_dump(firstKey);
?>
It should be:
var_dump($firstKey);
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=77164&edit=1