<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>PHPDeveloper.org</title>
    <link>http://www.phpdeveloper.org</link>
    <description>Up-to-the Minute PHP News, views and community</description>
    <language>en-us</language>
    <pubDate>Tue, 21 May 2013 20:32:32 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Ben Ramsey: Introducing Array_column() in PHP 5.5]]></title>
      <guid>http://www.phpdeveloper.org/news/19344</guid>
      <link>http://www.phpdeveloper.org/news/19344</link>
      <description><![CDATA[<p>
<i>Ben Ramsey</i> has a new post talking about a feature that will become available in the PHP 5.5.x release series of the language - the <a href="http://benramsey.com/blog/2013/03/introducing-array-column-in-php-5-dot-5/">array_column</a> function. This function will extract all values from an array matching a given key.
</p>
<blockquote>
My original patch for array_column() was written for PHP 5.2, but it sat around collecting dust for many years, until April of last year, when PHP moved to git and GitHub. That's when it became easy enough to apply the patch and send a pull request, which I did. [...] My goal for array_column() was simplicity. Many implement the functionality in different ways, and many call the function by other names (such as "pluck"), but I wanted to keep it simple and recognizable.
</blockquote>
<p>
He includes an example of some sample data and how the function could be used to pull out the "last_name" field from each of the records and return just those as an array. If you're interested in seeing the original proposal and the RFC that was created for it, you can see it <a href="https://wiki.php.net/rfc/array_column">on the PHP wiki</a>.
</p>]]></description>
      <pubDate>Thu, 21 Mar 2013 10:46:01 -0500</pubDate>
    </item>
  </channel>
</rss>
