<?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>Sun, 06 Jul 2008 03:05:40 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Zend Developer Zone: Three Quick Tips To Make Your PHP Understandable]]></title>
      <guid>http://www.phpdeveloper.org/news/10479</guid>
      <link>http://www.phpdeveloper.org/news/10479</link>
      <description><![CDATA[<p>
The Zend Developer Zone has posted <a href="http://devzone.zend.com/article/3592-Three-Quick-Tips-To-Make-Your-PHP-Understandable">a new article</a> today with three tips to help you make your code a little easier to understand (both by other coders and yourself down the road).
</p>
<blockquote>
Producing code that clearly conveys a developer's intent is key to any well written application. That not only applies to PHP, but every programming language. Developers who emphasize the creation of legible code tend to create applications which are easier to both maintain and expand upon.
</blockquote>
<p>
His <a href="http://devzone.zend.com/article/3592-Three-Quick-Tips-To-Make-Your-PHP-Understandable">tips</a> include suggestions about keeping conditional logic clean, using "less PHP and more HTML" and to make the best possible use that you can out of sprintf "and friends".
</p>]]></description>
      <pubDate>Wed, 25 Jun 2008 07:57:19 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[PHPFreaks.com: PHP Loops]]></title>
      <guid>http://www.phpdeveloper.org/news/10454</guid>
      <link>http://www.phpdeveloper.org/news/10454</link>
      <description><![CDATA[<p>
The PHPFreaks.com website gets back to basics with <a href="http://www.phpfreaks.com/tutorial/php-loops">a new tutorial</a> they've posted - a look at looping in PHP.
</p>
<blockquote>
Looping is simply a way for you to reduce the amount of code and/or content you have to write out. The idea is that you have something you have to do, or some content you have to show, and instead of just "writing it all out," you find a pattern to it - a common denominator - and let PHP execute the code or generate the content piece by piece using that pattern, based on a condition.
</blockquote>
<p>
<a href="http://www.phpfreaks.com/tutorial/php-loops/page2">Their example</a> solves the problem of finding taking a range of numbers and seeing how many of them can be evenly divided by another number.
</p>]]></description>
      <pubDate>Fri, 20 Jun 2008 12:10:18 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Debuggable Blog: How to do Group By conditions in Model find() calls in the CakePHP RC1]]></title>
      <guid>http://www.phpdeveloper.org/news/10396</guid>
      <link>http://www.phpdeveloper.org/news/10396</link>
      <description><![CDATA[<p>
On the Debuggable blog, <i>Tim Koschutzki</i> <a href="http://www.debuggable.com/posts/how-to-do-group-by-conditions-in-model-find()-calls:483fdc1c-8454-4593-a55e-37244834cda3">shows</a> how to  use grouping in your SQL statements with the find() method calls inside of a Model for an app.
</p>
<blockquote>
We have to thank <a href="http://mark-story.com/">Mark Story</a> and wluigi for working on group by conditions for Cake's Model::find() method. Up until now, you would have to add your GROUP BY stuff to string'ed conditions in order to support a group by statement, which could be very ugly.
</blockquote>
<p>
He has some <a href="http://www.debuggable.com/posts/how-to-do-group-by-conditions-in-model-find()-calls:483fdc1c-8454-4593-a55e-37244834cda3">code included</a> that compares the two methods - the newer of the two applying the 'group' option as a regular condition to the query object.
</p>
<p>
This functionality is currently only in the the Release Candidate 1 but will be included in the next major release.
</p>]]></description>
      <pubDate>Thu, 12 Jun 2008 08:48:09 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[PHPBuilder.com: The Ternary Conditional Operator]]></title>
      <guid>http://www.phpdeveloper.org/news/9760</guid>
      <link>http://www.phpdeveloper.org/news/9760</link>
      <description><![CDATA[<p>
The PHPBuilder.com site has a <a href="http://www.phpbuilder.com/columns/scross99_20080305.php3">quick reminder</a> about a handy little bit of functionality PHP has to make evaluations quicker - the ternary operator.
</p>
<blockquote>
This allows you to check for the existence of a variable (or check that the variable has a valid value) and assign a value accordingly. This is very useful when you are dealing with $_GET, $_POST, $_SESSION etc. variables, because you don't know whether the incoming variable will exist, and if it doesn't you might want to assign a default value. 
</blockquote>
<p>
An example is included and explained - evaluating an index in the _GET superglobal to see if it exists. It returns either the value itself or a false.
</p>]]></description>
      <pubDate>Fri, 07 Mar 2008 12:04:00 -0600</pubDate>
    </item>
  </channel>
</rss>
