<?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 10:08:14 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[PHPBuilder.com: Implementing User Defined Interfaces in PHP 5]]></title>
      <guid>http://www.phpdeveloper.org/news/18364</guid>
      <link>http://www.phpdeveloper.org/news/18364</link>
      <description><![CDATA[<p>
On PHPBuilder.com today there's a new tutorial that <a href="http://www.phpbuilder.com/articles/php-functions/other-functions/Implementing_User_Defined_Interfaces_in_PHP_5.html">talks about creating interfaces</a> in PHP and how to use them to effectively structure your application.
</p>
<blockquote>
Starting with PHP 5 the object model was rewritten to add features and bring PHP in line with languages such as Java and Visual Basic .NET. In this article I'll discuss interfaces, which is among the most important features in PHP 5. Other important features include <a href="http://www.php.net/manual/en/language.oop5.visibility.php>visibility</a>, <a href="http://www.php.net/manual/en/language.oop5.abstract.php">abstract</a> and <a href="http://www.php.net/manual/en/language.oop5.final.php">final</a> classes, methods and additional <a href="http://www.php.net/manual/en/language.oop5.magic.php">magic methods</a>. You will learn how to define your own interfaces and how to work with them using different object model mechanisms.
</blockquote>
<p>
The introduce you to some of the basic concepts behind using interfaces and how to create a basic one - a simple definition of a string class with one method, "getString". They then show how to extend a different example (a RandomNumber interface) and add on an additional method. He also shows how to extend multiple interfaces and integrate functionality from multiple sources, overloading and overrides.
</p>]]></description>
      <pubDate>Thu, 16 Aug 2012 08:35:53 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Bjarte Karlsen's Blog: Sorting with uasort]]></title>
      <guid>http://www.phpdeveloper.org/news/6599</guid>
      <link>http://www.phpdeveloper.org/news/6599</link>
      <description><![CDATA[<p>
<i>Bjarte Karlsen</i> has a <a href="http://phpmeus.blogspot.com/2006/10/sorting-with-usaort.html">handy tip</a> posted to his blog today - one array function to keep in mind when doing more than just the basic sorting - <a href="http://www.php.net/manual/en/function.uasort.php">uasort</a>.
</p>
<blockquote>
<p>
Problem: You have an array of objects or a multidimentional arrays where the key of the first array has some meaning. It could be a id or something else. You want to sort the array and maintain the key=>value association.
</p>
<p>
Some may then proceed to loop the array and sort it in a loop, however there is a easier method. 
</p>
</blockquote>
<p>
He reminds us that the fucntion allows you to take in the array and, based on a user-defined function, sort the results, keeping the association between the keys and values.
</p>]]></description>
      <pubDate>Mon, 30 Oct 2006 13:25:00 -0600</pubDate>
    </item>
  </channel>
</rss>
