<?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, 20 Jun 2013 07:40:11 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Chris Tankersley's Blog: Getting Started with Reflection]]></title>
      <guid>http://www.phpdeveloper.org/news/15077</guid>
      <link>http://www.phpdeveloper.org/news/15077</link>
      <description><![CDATA[<p>
<i>Chris Tankersley</i> has a new post to how blog looking at a powerful but sometimes seldom used feature of PHP - Reflection. <a href="http://ctankersley.com/2010/09/03/getting-started-with-reflection/">His post</a> introduces you to some of the basics you can use to have your code find out more about itself.
</p>
<blockquote>
Reflection  is a metaprogramming construct that allows a program to look into itself and do a multitude of different things - gain meaning, watch execution, call code, or even provide feedback. [...] With PHP 5, PHP gained a robust reflection class that allows a developer to gain access to just about every aspect of an object and interact with it. The key is figuring out what is available, and then exploiting it to gain additional benefits.
</blockquote>
<p>
He gives examples from <a href="http://github.com/dragonmantank/PhpORM">his project</a> where it uses the <a href="http://www.php.net/manual/en/class.reflectionclass.php">ReflectionClass</a> feature to pull in the values of a class including properties and methods in a class (a set of <a href="http://www.php.net/manual/en/class.reflectionobject.php">ReflectionMethods</a>). Some code is provided to make the examples a bit more clear.
</p>]]></description>
      <pubDate>Fri, 03 Sep 2010 14:12:13 -0500</pubDate>
    </item>
  </channel>
</rss>
