<?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>Wed, 19 Jun 2013 21:08:27 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[PHPMaster.com: Learning Loops]]></title>
      <guid>http://www.phpdeveloper.org/news/17264</guid>
      <link>http://www.phpdeveloper.org/news/17264</link>
      <description><![CDATA[<p>
PHPmaster.com has a new introductory tutorial for those just starting out with PHP (or with programming really) talking about <a href="http://phpmaster.com/loops/">using looping structures</a> for sets of data - for, while/do-while and foreach.
</p>
<blockquote>
A significant advantage of computers is that they can perform repetitive tasks easily and efficiently. Instead of writing repetitive code you can write a set of statements that processes some data and then have the computer execute them repeatedly by using a construct known as a loop. Loops come in several different flavors in PHP: for, while, do-while, and foreach. I'll introduce you to each of them and show you how they can making repetitive tasks straightforward and easy to maintain.
</blockquote>
<p>
The tutorial explains a use case for each of the loop types and includes a bit of sample code showing how to put it into practice. It also shares two special keywords that can be used to bypass or break out of your current loop - break and continue.
</p>]]></description>
      <pubDate>Thu, 15 Dec 2011 10:15:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Jani Hartikainen's Blog: Three PHP mistakes that will cause you debugging nightmares]]></title>
      <guid>http://www.phpdeveloper.org/news/11795</guid>
      <link>http://www.phpdeveloper.org/news/11795</link>
      <description><![CDATA[<p>
<i>Jani Hartikainen</i> has <a href="http://codeutopia.net/blog/2009/01/21/three-php-mistakes-that-will-cause-you-debugging-nightmares/">posted about</a> three simple, but hard to find, mistakes that can cause you endless frustration if you're not looking in the right places.
</p>
<p>Here's his list:</p>
<ul>
<li>Semicolon after a while - a small problem with big (infinitely looping) consequences)
<li>empty() and magic __get method - __get will hit first, then empty
<li>Missing semicolon after break or continue - a classic that can make switches and evaluations difficult to debug
</ul>
<p>
Comments on the post include a few others: working with variables by reference, comparisons with == versus === and strpos finding the first character in a string.
</p>]]></description>
      <pubDate>Thu, 22 Jan 2009 12:51:50 -0600</pubDate>
    </item>
  </channel>
</rss>
