Re: [DRAFT] RFC - array_column() function

From: Date: Sun, 24 Jun 2012 16:19:19 +0000
Subject: Re: [DRAFT] RFC - array_column() function
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-60958@lists.php.net to get a copy of this message
The term 'column' makes a lot of sense for PDO working with database columns, but there is no concept of a 'column' in the array structure or PHP as a whole, outside of database related functions.
Actually, while perhaps most of the time a value from a column is what people retrieving from a database result set, that is not always the case. The result could be the value from an expression or a field from a database view. Most database extensions outside of PDO do in fact call it a "field", which I (too) feel is more appropriate. In the case of this addition, I do indeed like array_pluck as well, as column feel like an overloaded term. -ralph

« previous php.internals (#60958) next »