<?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 15:15:00 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Pixelstech.com: Should we use Abstract class or Interface?]]></title>
      <guid>http://www.phpdeveloper.org/news/19478</guid>
      <link>http://www.phpdeveloper.org/news/19478</link>
      <description><![CDATA[<p>
On the Pixelstech.com site today there's a new post that talks about the <a href="http://www.pixelstech.net/article/1366044255_Should_we_use_Abstract_class_or_Interface_">differences between abstract classes and interfaces</a> and when's the best time to use either (or both).
</p>
<blockquote>
When we write programs, we may often get into a situation where we don't know whether we should use Abstract class or Interface when we want to define an abstract object. These two are very similar and they are interchangeable. On Stackoverflow, this question is asked many times, it's related to many programming languages. Also in the official documentation of PHP regarding the Abstract class and Interface, people are arguing about this. To understand this question, we need to understand their differences and use scenarios.
</blockquote>
<p>
They provide examples of abstract class and interface usage with one of the main differences being that you can define functionality in abstract classes. There's also examples showing classes that extend the abstract class while implementing the interface at the same time, helping to define the object structure to an even finer level.
</p>
Link: http://www.pixelstech.net/article/1366044255_Should_we_use_Abstract_class_or_Interface_]]></description>
      <pubDate>Thu, 18 Apr 2013 09:22:23 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[WebReference.com: Class Inheritance with PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/8637</guid>
      <link>http://www.phpdeveloper.org/news/8637</link>
      <description><![CDATA[<p>
WebReference.com has a <a href="http://www.webreference.com/programming/php/class_inherit/index.html">new tutorial</a> posted today (from <i>Kris Hadlock</i>) concerning the class inheritance functionlaity that's a part of the object oriented structure in PHP:
</p>
<blockquote>
There are many benefits of inheritance with PHP, the most common is simplifying and reducing instances of redundant code. Class inheritance may sound complicated, but think of it this way. Consider a tree. A tree is made up of many parts, such as the roots that reside in the ground, the trunk, bark, branches, leaves, etc. Essentially inheritance is a connection between a child and its parent. [...] This article assumes a basic understanding of OOP with PHP.
</blockquote>
<p>
They show how to <a href="http://www.webreference.com/programming/php/class_inherit/index.html">create the parent object</a> as a base and how to inherit it into a child class - using the extend keyword in the class definition. They give an example of their sample code in action so you can see how the inheritance is handled. 
</p>]]></description>
      <pubDate>Wed, 12 Sep 2007 09:38:00 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[CodeSnipers.com: Embarking on PHP5 Objects]]></title>
      <guid>http://www.phpdeveloper.org/news/4680</guid>
      <link>http://www.phpdeveloper.org/news/4680</link>
      <description><![CDATA[From CodeSnipers.com today, there's a new post with their look at <a href="http://codesnipers.com/?q=node/218&title=">objects in PHP5</a> - how they work, how they're different from in PHP4, and some code to show their use.
<p>
<quote>
<i>
After a brief few weeks studying Perl and its nuances I'm going to take a look at PHP5 Objects. 
<p>
One of the annoying things with object in PHP 4 was you had to use a lot of references, you know, that funny & symbol. No longer needed in PHP 5 because you use "Object Handles" perhaps similar to a file handler you when fopen a file. Also available now are access modifiers "public/protected/package" and interface implementation. I can hear the beer mugs of java programmers being raised in celebration to this one. Also new to PHP 5 are real constructors and destroy methods. There are many more features, but lets see some code.
</i>
</quote>
<p>
There are <a href="http://codesnipers.com/?q=node/218&title=">code examples</a> that show some of the new keywords (private, public, etc) that the object structure uses, as well as how you can use them. They link to the PDF of <a href="http://www.phptr.com/content/images/013147149X/downloads/013147149X_book.pdf">Power PHP 5 Programming</a> for a good place to start...]]></description>
      <pubDate>Wed, 18 Jan 2006 06:40:42 -0600</pubDate>
    </item>
  </channel>
</rss>
