<?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, 23 May 2013 23:56:11 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Jani Hartikainen: Parsing and evaluating PHP in Haskell: Part 2]]></title>
      <guid>http://www.phpdeveloper.org/news/19079</guid>
      <link>http://www.phpdeveloper.org/news/19079</link>
      <description><![CDATA[<p>
<i>Jani Hartikainen</i> has posted the <a href="http://codeutopia.net/blog/2013/01/23/parsing-and-evaluating-php-in-haskell-part-2/">second article</a> in his series looking at parsing PHP with Haskell (part one is <a href="http://phpdeveloper.org/news/19052">here</a>). In this new article he builds on the parser he built last time and gets to the actual evaluation of the PHP code.
</p>
<blockquote>
Last week I wrote a post about a PHP parser / evaluator I wrote in Haskell. I explained some of the parts on how the parser itself was designed to process PHP code into an abstract source tree. Continuing from where we left off in the <a href="http://codeutopia.net/blog/2013/01/16/parsing-and-evaluating-php-in-haskell-part-1/">previous part</a>, in this post I'll discuss the actual evaluation part.
</blockquote>
<p>
He starts by introducing the structure of the evaluator script, how it's broken up into functionality based on the type of object/data type being handled. He uses a "custom monad transformer stack" to handle the environment for the evaluation as is progresses. He talks about handling statements and expressions, declaring custom functions and the actual execution of the function call. There's also a mention of handling conditionals/looping as well as dealing with PHP's type juggling. 
</p>
<p>
if you're interested in seeing the final result (and maybe trying it out for yourself) you can find the <a href="https://github.com/jhartikainen/hs-language-php">full source on Github</a>.
</p>]]></description>
      <pubDate>Wed, 23 Jan 2013 11:24:34 -0600</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[Stefan Mischook's Blog: PHP Video Tutorial: PHP Loops]]></title>
      <guid>http://www.phpdeveloper.org/news/8739</guid>
      <link>http://www.phpdeveloper.org/news/8739</link>
      <description><![CDATA[<p>
<i>Stefan Mischook</i> has <a href="http://www.killerphp.com/articles/php-video-tutorial-php-loops/">posted another video</a> introducing beginning PHP developers to the basics of the language. In this new video, he explains looping.
</p>
<blockquote>
I've released a new video tutorial covering PHP basics. In this video I teach three different loop types in PHP: For Loops, While Loops and Foreach Loops.
</blockquote>
<p>
You can <a href="http://www.killerphp.com/videos/11_loops/loops.php">watch this video here</a> or check out some of the other <a href="http://www.killerphp.com/articles/category/php-videos/">video tutorials</a> he has posted on everything from conditionals to working with objects.
</p>]]></description>
      <pubDate>Thu, 27 Sep 2007 11:15:00 -0500</pubDate>
    </item>
  </channel>
</rss>
