<?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, 15 May 2008 22:12:24 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[MSBWare.com: XML to Array]]></title>
      <guid>http://www.phpdeveloper.org/news/9967</guid>
      <link>http://www.phpdeveloper.org/news/9967</link>
      <description><![CDATA[<p>
<i>Michael</i> has posted <a href="http://www.msbware.com/articles/scripts/xml_to_array.html">a simple script</a> today that takes in XML data and spits back out an array on the other side:
</p>
<blockquote>
The function takes the specified XML data (which must be in valid XML format) and converts into an array.  Any attributes in the XML elements are dropped an only the element values are placed in the array.
</blockquote>
<p>
<a href="http://www.msbware.com/articles/scripts/xml_to_array.html">The code</a> uses a combination of XPath, DOM, and regular expressions to parse the given XML content.
</p>]]></description>
      <pubDate>Mon, 14 Apr 2008 10:23:11 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[SitePoint WebTech Blog: Give Your Visitors a Rough Time]]></title>
      <guid>http://www.phpdeveloper.org/news/9744</guid>
      <link>http://www.phpdeveloper.org/news/9744</link>
      <description><![CDATA[<p>
In <a href="http://www.sitepoint.com/blogs/2008/03/06/give-you-visitors-a-rough-time/">a new post</a> to the Web Tech blog over on SitePoint, <i>Toby Somerville</i> has posted something he calls "RoughTime" - his method for displaying a more "human friendly" output of a timestamp.
</p>
<blockquote>
When asked the time, we generally don't need to be military accurate with our response [...] we generally communicate the approximate time. i.e. 'its nearly ten' or 'its just gone half past three'. Yet on the web, time is generally shown as '12:24:13 AM', or similar â€" not very visitor friendly.
</blockquote>
<p>
His <a href="http://www.sitepoint.com/blogs/2008/03/06/give-you-visitors-a-rough-time/">RoughTime</a> uses two switch statements to map the hour and minute values to different strings. For example, minutes between 15 and 20 become "quarter past" and the hours are changed over from numeric versions to their word counterparts.
</p>]]></description>
      <pubDate>Thu, 06 Mar 2008 08:44:00 -0600</pubDate>
    </item>
  </channel>
</rss>
