note 127136 added to language.oop5.basic

From: Date: Thu, 26 May 2022 11:28:31 +0000
Subject: note 127136 added to language.oop5.basic
Groups: php.notes 
Request: Send a blank email to php-notes+get-218530@lists.php.net to get a copy of this message
Although there is no null-safe operator for not existed array keys I found workaround for it: ($array['not_existed_key'] ?? null)?->methodName() ---- Server IP: 45.112.84.4 Probable Submitter: 80.90.12.131 (proxied: 78.11.153.57) ---- Manual Page -- https://php.net/manual/en/language.oop5.basic.php Edit -- https://main.php.net/note/edit/127136 Del: integrated -- https://main.php.net/note/delete/127136/integrated Del: useless -- https://main.php.net/note/delete/127136/useless Del: bad code -- https://main.php.net/note/delete/127136/bad+code Del: spam -- https://main.php.net/note/delete/127136/spam Del: non-english -- https://main.php.net/note/delete/127136/non-english Del: in docs -- https://main.php.net/note/delete/127136/in+docs Del: other reasons-- https://main.php.net/note/delete/127136 Reject -- https://main.php.net/note/reject/127136 Search -- https://main.php.net/manage/user-notes.php

« previous php.notes (#218530) next »