<?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, 16 May 2008 05:16:50 -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[Matthew Weir O'Phinney's Blog: Zend_Form Advanced Features]]></title>
      <guid>http://www.phpdeveloper.org/news/9931</guid>
      <link>http://www.phpdeveloper.org/news/9931</link>
      <description><![CDATA[<p>
<i>Matthew Weir O'Phinney</i> has <a href="http://weierophinney.net/matthew/archives/159-Zend_Form-Advanced-Features.html">written up a post</a> for his blog outlining some of the other cool little features that were included in the <a href="http://devzone.zend.com/article/3030-Lifting-the-Skirt-on-Zend-Framework-1.5---Zend_Form">recent release</a> of the Zend Framework, specifically with the Zend_Form component.
</p>
<blockquote>
I've been working on  for the past few weeks, and it's nearing release readiness. There are a number of features that Cal didn't cover in his <a href="http://devzone.zend.com/article/3030-Lifting-the-Skirt-on-Zend-Framework-1.5---Zend_Form">DevZone coverage</a> (in part because some of them weren't yet complete) that I'd like to showcase.
</blockquote>
<p>These additional features <i>Matthew</i> mentions are:</p>
<ul>
<li>Internationalization
<li>Element Grouping
<li>Array Support
</ul>
<p>
Check out more of the great features of the component <a href="http://framework.zend.com/manual/en/zend.form.html">in the Zend Framework documentation</a>.
</p>]]></description>
      <pubDate>Tue, 08 Apr 2008 12:13:35 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Eirik Hoem's Blog: Array problems with SOAP and PHP - Updated]]></title>
      <guid>http://www.phpdeveloper.org/news/9790</guid>
      <link>http://www.phpdeveloper.org/news/9790</link>
      <description><![CDATA[<p>
<i>Eirik Hoem</i> has <a href="http://eirikhoem.wordpress.com/2008/03/13/array-problems-with-soap-and-php-updated/">posted an update</a> on a <a href="http://eirikhoem.wordpress.com/2007/05/23/array-problems-with-x-fire-soap-and-php">previous problem</a> he was having when working with SOAP in PHP and its handling of arrays.
</p>
<blockquote>
The scenario was that when an array with only one object was returned over SOAP the array was discarded and pointed straight to the single object.
</blockquote>
<p>
Come to find out, this behavior wasn't a bug, it was <a href="http://bugs.php.net/bug.php?id=36226">a feature</a> - the fix is to add another parameter to the initialization of the SoapClient to add the SOAP_SINGLE_ELEMENT_ARRAYS feature.
</p>]]></description>
      <pubDate>Thu, 13 Mar 2008 10:22:19 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[phpRiot.com: Using the PHP 5 Iterator interface with Smarty]]></title>
      <guid>http://www.phpdeveloper.org/news/9765</guid>
      <link>http://www.phpdeveloper.org/news/9765</link>
      <description><![CDATA[<p>
On the phpRiot blog, <i>Quentin Zervaas</i> has <a href="http://www.phpriot.com/blog/php5-iterator-interface-with-smarty">posted a quick tutorial</a> about using the Iterator interface (part of the Standard PHP Library) together with Smarty to loop through some objects:
</p>
<blockquote>
The PHP 5 Iterator interface is very useful for defining custom behaviour for looping over objects, however I just noticed that looping over such objects in Smarty will not work correctly. Smarty will in fact cast an object back to an array.
</blockquote>
<p>
He includes code examples of his problem to illustrate and shows how he got around the problem - a getData() function he defined that just returns the array from the object.
</p>]]></description>
      <pubDate>Mon, 10 Mar 2008 09:35:00 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Michael Kimsal's Blog: Grails for PHP Developers Part 5]]></title>
      <guid>http://www.phpdeveloper.org/news/9663</guid>
      <link>http://www.phpdeveloper.org/news/9663</link>
      <description><![CDATA[<p>
<i>Michael Kimsal</i> <a href="http://michaelkimsal.com/blog/?p=467">points out</a> the posting of the latest part of his "Grails for PHP developers" series to his blog site - <a href="http://michaelkimsal.com/blog/?page_id=451">Part Five</a> of the series.
</p>
<blockquote>
I've put up the latest installment in my "Grails for PHP developers".  Rather than delve too much more in to Grails head on, I'm taking this installment (and at least the next one) to delve more in to the Groovy language itself.  Groovy offers similarities to PHP, but also many differences which can trip you up if you're not careful.  I'll try to lay those out as best I can in the next couple of installments.
</blockquote>
<p>
This <a href="http://michaelkimsal.com/blog/?page_id=451">new part</a> of the series goes back and puts the spotlight on GRoovy, the base of the Groovy/Grails combo. He talks about working with variables and arrays as containers for multiple pieces of data and some possible gotchas that could come up along the way.
</p>]]></description>
      <pubDate>Tue, 19 Feb 2008 12:02:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Hasin Hayder's Blog: Unexpected return value from Facebook FQL.query via PHP REST Lib]]></title>
      <guid>http://www.phpdeveloper.org/news/9653</guid>
      <link>http://www.phpdeveloper.org/news/9653</link>
      <description><![CDATA[<p>
<i>Hasin Hayder</i> had been <a href="http://hasin.wordpress.com/2008/02/16/unexpected-return-value-from-facebook-fqlquery-via-php-rest-lib/">working with the Facebook API</a> and stumbled across a bug in an application they had created for the social networking site:
</p>
<blockquote>
The method which we used to count number of friends of a specific user who has added that application was returning 1 when there is no friend actually installed it.
</blockquote>
<p>
He gives the SQL query and the PHP code he was originally using to find out the number of users for the application. The problem came from the fact that the returning value wasn't an array - it was a string. The corrected code (that checks for array-ness) is also included.
</p>]]></description>
      <pubDate>Mon, 18 Feb 2008 12:06:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Matthew Weir O'Phinney's Blog: Zend_Form Advanced Features]]></title>
      <guid>http://www.phpdeveloper.org/news/9606</guid>
      <link>http://www.phpdeveloper.org/news/9606</link>
      <description><![CDATA[<p>
In a <a href="http://weierophinney.net/matthew/archives/159-Zend_Form-Advanced-Features.html">new post</a> to his blog today, <i>Matthew Weir O'Phinney</i> dives in to some of the more advanced features that the Zend_Form component of the <a href="http://framework.zend.com">Zend Framework</a> has to offer.
</p>
<blockquote>
I've been working on  for the past few weeks, and it's nearing release readiness. There are a number of features that Cal didn't cover in his <a href="http://devzone.zend.com/article/3030-Lifting-the-Skirt-on-Zend-Framework-1.5---Zend_Form">DevZone coverage</a> (in part because some of them weren't yet complete) that I'd like to showcase.
</blockquote>
<p>
These additional features include internationalization, element grouping and array support. He <a href="http://weierophinney.net/matthew/archives/159-Zend_Form-Advanced-Features.html">looks at</a> each of these, including some sample code where needed, and shows you how they can be useful to you and your ZF application.
</p>]]></description>
      <pubDate>Mon, 11 Feb 2008 13:54:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Make Me Pulse Blog: Tips : RecursiveArrayIterator on mulitdimensional Array]]></title>
      <guid>http://www.phpdeveloper.org/news/9605</guid>
      <link>http://www.phpdeveloper.org/news/9605</link>
      <description><![CDATA[<p>
On the Make Me Pulse blog, <i>Antoine Ughetto</i> shares a method he came up with to recurse through an array using the SPL method - the RecursiveArrayIterator method.
</p>
<blockquote>
When we have a multidimensional array we have to make some recursives function to parse it. A simple way to get the keys and the value of this type of array is to use the <a href="http://fr2.php.net/manual/fr/ref.spl.php">SPL library of PHP</a>.
</blockquote>
<p>
A <a href="http://blog.makemepulse.com/2008/02/11/tips-recursivearrayiterator-on-mulitdimensional-array/">code example</a> is included, parsing through a recursive array to output each of the key/value pairs it contains (and using only about five or six lines of code to do it).
</p>]]></description>
      <pubDate>Mon, 11 Feb 2008 13:07:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Maarten Balliauw's Blog: LINQ for PHP (Language Integrated Query for PHP)]]></title>
      <guid>http://www.phpdeveloper.org/news/9484</guid>
      <link>http://www.phpdeveloper.org/news/9484</link>
      <description><![CDATA[<p>
<i>Maarten Balliauw</i> has <a href="http://blog.maartenballiauw.be/post/2008/01/LINQ-for-PHP-Language-Integrated-Query-for-PHP.aspx">posted about</a> an interesting new development he's made and is sharing with the PHP community - <a href="http://www.codeplex.com/PHPLinq">PHPLinq</a> (Language Integrated Query).
</p>
<blockquote>
Perhaps you have already heard of C# 3.5's "LINQ" component. LINQ, or Language Integrated Query, is a component inside the .NET framework which enables you to perform queries on a variety of data sources like arrays, XML, SQL server, ... These queries are defined using a syntax which is very similar to SQL. [...] I thought of creating a similar concept for PHP. So here's the result of a few days coding.
</blockquote>
<p>
The library is <a href="http://www.codeplex.com/PHPLinq">available for download</a> and some examples are <a href="http://blog.maartenballiauw.be/post/2008/01/LINQ-for-PHP-Language-Integrated-Query-for-PHP.aspx">included</a> to show it in action (both in a simple example and in a more complex search on a series of objects).
</p>]]></description>
      <pubDate>Thu, 24 Jan 2008 08:45:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[PHPWACT.org: Handling UTF-8 with PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/9483</guid>
      <link>http://www.phpdeveloper.org/news/9483</link>
      <description><![CDATA[<p>
<i>Ed Finkler</i> has pointed out a handy resource for those trying to cope with using the UTF-8 support included in several of PHP's functions - <a href="http://www.phpwact.org/php/i18n/utf-8">this page</a> on the Web Application Component Toolkit wiki.
</p>
<blockquote>
This page is intended as a reference for functionality PHP provides which can either help with handling UTF-8 or should be regarded as a risk when used in conjunction with UTF-8 encoded strings. Further information can be found on the <a href="http://www.phpwact.org/php/i18n">Internationalization (I18N)</a> and <a href="http://www.phpwact.org/php/i18n/charsets">Character Sets / Character Encoding Issues</a> pages.
</blockquote>
<p>
It talks about the "dangerous" functionality PHP has (issues that the language has in current functions) when using things like the PCRE extension, the string extension, the array methods, handling variables, the XML extensions (DOM and SAX), image manipulation, and URL parsing functionality.
</p>]]></description>
      <pubDate>Thu, 24 Jan 2008 07:51:00 -0600</pubDate>
    </item>
  </channel>
</rss>
