<?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>Fri, 24 May 2013 05:15:30 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[PHPMaster.com: Array Handling Functions]]></title>
      <guid>http://www.phpdeveloper.org/news/16974</guid>
      <link>http://www.phpdeveloper.org/news/16974</link>
      <description><![CDATA[<p>
On PHPMaster.com today there's a new tutorial introducing you to <a href="http://phpmaster.com/array-handling-functions/">the array handling features</a> in PHP - sorting, slicing and more.
</p>
<blockquote>
In my <a href="http://phpmaster.com/introduction-to-php-arrays/">previous article on PHP arrays</a> I suggested a number of things that are tables and therefore can also be expressed as arrays. In this article I'll use a pack of playing cards to explore some of the built-in array functions most often needed by PHP programmers.
To highlight some of the array-handling functions PHP offers, I'll be using some components of <a href="http://en.wikipedia.org/wiki/Buraco">Buraco</a> - a game very popular in my part of the world and quite similar to Rummy.
</blockquote>
<p>
In the example he represents a deck of cards with an array of values like "A", "03" and "13". This array is then looped to make the full set of 52 cards and shuffled to deal a "hand". Array functions put to use include <a href="http://php.net/array_rand">array_rand</a>, <a href="http:/php.net/in_array">in_array</a> and <a href="http://php.net/sort">sort</a>.
</p>]]></description>
      <pubDate>Tue, 11 Oct 2011 08:37:55 -0500</pubDate>
    </item>
  </channel>
</rss>
