<?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>Thu, 23 May 2013 14:36:01 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Jani Hartikainen's Blog: Base classes in OOP programming languages]]></title>
      <guid>http://www.phpdeveloper.org/news/11429</guid>
      <link>http://www.phpdeveloper.org/news/11429</link>
      <description><![CDATA[<p>
<i>Jani Hartikainen</i> has followed up on a post from <i>David Otten</i> about standard classes in PHP and how they provide the base for much of what the language does.
</p>
<blockquote>
David Otton posted a <A href="http://www.otton.org/2008/11/11/php-base-class-stdclass/">short but thought-provoking post about stdClass</a>, which many think is the "base class" all PHP classes automatically inherit from. I have to admit that I had this misconception as well. [...] This [difference in PHP from other OOP languages] presents some room for analysis in how things are handled in dynamic and static languages, and how those differences affect things...
</blockquote>
<p>
<i>Jani</i> <a href="http://codeutopia.net/blog/2008/11/19/base-classes-in-oop-programming-languages/">talks about</a> dynamic and static typing in languages and how that effects the base types things are extended from as well as some of the benefits that having a standard base class affords developers.
</p>]]></description>
      <pubDate>Wed, 19 Nov 2008 16:10:58 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[David Otton's Blog: PHP Tip: Classes Aren't Derived From stdClass]]></title>
      <guid>http://www.phpdeveloper.org/news/11415</guid>
      <link>http://www.phpdeveloper.org/news/11415</link>
      <description><![CDATA[<p>
<i>David Otton</i> has shared a <a href="http://www.otton.org/2008/11/11/php-base-class-stdclass/">discovery</a> he's come across in his development - user-defined classes are not derived from stdClass.
</p>
<blockquote>
Many OO languages have the concept of a single base class from which all other classes are explicitly or implicitly descended. For example, Ruby, Java and .NET all have Object. It's a very <a href="http://www.google.co.uk/search?hl=en&q=php%20%22base%20class%22%20stdClass&meta=">common belief</a> that PHP implements stdClass as a base class for all objects, but this is in fact not the case.
</blockquote>
<p>
He illustrates with a code example showing the results of calls to instanceof with a normal user class and one that extends the stdClass object.
</p>]]></description>
      <pubDate>Sun, 16 Nov 2008 10:54:53 -0600</pubDate>
    </item>
  </channel>
</rss>
