<?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>Sat, 18 May 2013 03:57:06 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Matthew Weir O'Phinney's Blog: PHP 5's Reflection API]]></title>
      <guid>http://www.phpdeveloper.org/news/6453</guid>
      <link>http://www.phpdeveloper.org/news/6453</link>
      <description><![CDATA[<p>
In his <a href="http://weierophinney.net/matthew/archives/125-PHP-5s-Reflection-API.html">latest blog post</a>, <i>Matthew Weir O'Phinney</i> shares some of his newfound love for the Reflection API that PHP5 brings to the table:
</p>
<blockquote>
<p>
When I first read about the Reflection API in a pre-PHP 5 changelog, my initial reaction was, "who cares?" I simply failed to see how it was a useful addition to the language. Having done some projects recently that needed to know something about the classes they are using, I now understand when and how it can be used. 
</p>
<p>
It shines when you need to work with classes that may not be defined when you write your code -- any code that dispatches to other classes, basically.
</p>
</blockquote>
<p>
To emphasize the point, he <a href="http://weierophinney.net/matthew/archives/125-PHP-5s-Reflection-API.html">lists a few things</a> you can do with the API, including determine if a method exists in a class and instantiate an object instance with a variable number of arguments to the constructor. He also includes a code example, showing a simple method of getting all of the methods on a class.
</p>]]></description>
      <pubDate>Mon, 09 Oct 2006 13:37:00 -0500</pubDate>
    </item>
  </channel>
</rss>
