PR #1325 - array_column() for array of objects

From: Date: Fri, 12 Jun 2015 01:31:18 +0000
Subject: PR #1325 - array_column() for array of objects
Groups: php.internals 
Request: Send a blank email to internals+get-86606@lists.php.net to get a copy of this message
Hi, I've created a PR here: https://github.com/php/php-src/pull/1325 This enhancement allows for properties on objects to work in the same way as arrays for the inner elements of the main array. It also supports the __get() method, provided that also __isset() is implemented and returns true for the addressed property. The only BC I can imagine is when an array is populated with a mixed set of objects and arrays; any professional would baulk at the idea, but rules of the jungle are pervasive. Before I merge this, are there any objections to shipping this with 7.0?

« previous php.internals (#86606) next »