<?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 05:40:42 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Springboard Software Blog: Using Introspection in PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/5703</guid>
      <link>http://www.phpdeveloper.org/news/5703</link>
      <description><![CDATA[<p>
In <a href="http://blog.springboard-software.com/?p=12">this new post</a> on the Springboard Software blog today, <i>Michael</i> takes a look at a very handy feature that PHP has to offer those working with objects - a form of introspection.
</p>
<blockquote>
<p>
One of the things we love about Java is its ability to use introspection. Don't know what methods or field an object has? Just ask it.
</p>
<p>
It turns out that PHP provides some nifty introspection features as well. We've found one to be particularly useful: the ability of a PHP object to tell us its member variables at runtime. Not sure what that means? Let's look at an example.
</p>
</blockquote>
<p>
In <a href="http://blog.springboard-software.com/?p=12">his example</a>, he uses a content management system, specifically the "business objects" to illustrate his point. Introspection comes into play when the get_class_vars function is called, returning the defined variables for an object and allowing one to feed in values to be automagically set (in this case, either an array, a request, or a primary key for a record from the database).
</p>]]></description>
      <pubDate>Tue, 27 Jun 2006 11:48:01 -0500</pubDate>
    </item>
  </channel>
</rss>
