php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #77164 Array function document error:array_key_first
Submitted: 2018-11-15 15:38 UTC Modified: 2018-11-15 16:47 UTC
From: 1354322083 at qq dot com Assigned: cmb (profile)
Status: Closed Package: Arrays related
PHP Version: 7.3.0RC5 OS: Linux/Windows
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: 1354322083 at qq dot com
New email:
PHP Version: OS:

 

 [2018-11-15 15:38 UTC] 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);



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2018-11-15 16:12 UTC] cmb@php.net
-Status: Open +Status: Verified -Package: PHP Language Specification +Package: Arrays related -Assigned To: +Assigned To: cmb
 [2018-11-15 16:47 UTC] cmb@php.net
Automatic comment from SVN on behalf of cmb
Revision: http://svn.php.net/viewvc/?view=revision&amp;revision=345985
Log: Fix #77164: Array function document error:array_key_first
 [2018-11-15 16:47 UTC] cmb@php.net
-Status: Verified +Status: Closed
 [2018-11-15 16:47 UTC] cmb@php.net
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.
 [2020-02-07 06:05 UTC] phpdocbot@php.net
Automatic comment on behalf of cmb
Revision: http://git.php.net/?p=doc/en.git;a=commit;h=f354c9be97814d65b178f4cbf0905af18919479b
Log: Fix #77164: Array function document error:array_key_first
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 18 09:01:27 2024 UTC