<?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>Tue, 21 May 2013 05:43:47 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Dikini.net: Some ways to use saved state with closures in PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/4731</guid>
      <link>http://www.phpdeveloper.org/news/4731</link>
      <description><![CDATA[On dikini.net today, there's <a href="http://dikini.net/25.01.2006/some_ways_to_use_saved_state_with_closures_in_php">a new post</a> that talks about a method of implementing saved state in PHP, and how to couple it with closures.
<p>
<quote>
<i>
In a <a href="http://dikini.net/24.01.2006/emulating_closures_in_php">previous short post</a> I describe a way to emulate closures in php. Using that technique execution environment, otherwise known as a call stack can be saved for future use. This can be put to good use. A couple of patterns or programming techniques could be useful in practice.
<p>
A closure represents a state => implemenation of a state pattern. This is a bit rich. Usually in OO programming the state pattern is implemented by encapsulating different protocols, for denoted states. This is simple to implement by substituting your protocol specification with a different name.
</i>
</quote>
<p>
His <a href="http://dikini.net/25.01.2006/some_ways_to_use_saved_state_with_closures_in_php">example</a> starts off with the Drupal hooks, using the State pattern to  create a method of tracking "where we are" via PHP. ]]></description>
      <pubDate>Wed, 25 Jan 2006 12:43:20 -0600</pubDate>
    </item>
  </channel>
</rss>
