<?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:07:53 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Matthew Weir O'Phinney's Blog: File_Fortune refactored]]></title>
      <guid>http://www.phpdeveloper.org/news/8192</guid>
      <link>http://www.phpdeveloper.org/news/8192</link>
      <description><![CDATA[<p>
In a <a href="http://weierophinney.net/matthew/archives/142-File_Fortune-refactored.html">new blog entry</a> today, <i>Matthew Weir O'Phinney</i> talks about updates (and refactoring) that he's done to a PEAR package he's developed, <a href="http://pear.php.net/package/File_Fortune">File_Fortune</a>.
</p>
<blockquote>
Over the past few evenings, I've refactored <a href="http://pear.php.net/trackback/trackback.php?id=File_Fortune">File_Fortune</a> to have it implement Iterator, Countable, and ArrayAccess -- basically allowing it to act like an array for most intents and purposes. As a result, I've eliminated the need for the File_Fortune_Writer package, and greatly simplified the usage.
</blockquote>
<p>
The package is designed to make an interface between the casual PHP user and the fortune files common on most *nix machines. To illustrate he update, he <a href="http://weierophinney.net/matthew/archives/142-File_Fortune-refactored.html">includes some code</a> that grabs the fortune file, parses it to grab a random one and echoes them out. Also included is the save() method so you can add your own to the list easily.
</p>]]></description>
      <pubDate>Fri, 06 Jul 2007 09:36:00 -0500</pubDate>
    </item>
  </channel>
</rss>
