Doc #80878 [Opn->Fbk]: array_key_exists is obsolete
| From: | cmb@php.net | Date: | Wed, 17 Mar 2021 16:04:59 +0000 |
| Subject: | Doc #80878 [Opn->Fbk]: array_key_exists is obsolete | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-18651@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=80878&edit=1
ID: 80878
Updated by: cmb@php.net
Reported by: regist70 at mail dot ru
Summary: array_key_exists is obsolete
-Status: Open
+Status: Feedback
Type: Documentation Problem
Package: Documentation problem
Operating System: win 7
PHP Version: 7.4.16
-Assigned To:
+Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
array_key_exists() is neither obsolete nor deprecated. How do you
get the idea?
Previous Comments:
------------------------------------------------------------------------
[2021-03-17 16:01:10] regist70 at mail dot ru
Description:
------------
---
From manual page: https://php.net/function.array-key-exists
---
Plesae check php version that supports this function.
On my PHP 7.4.12 this gunction is called obsolete
Test script:
---------------
if( array_key_exists ( 'owner_id', [/*somearray*/] ) )
{
//
}
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=80878&edit=1