<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Cycling between strings, a novel implementation</title>
	<atom:link href="http://aidanlister.com/2004/04/cycling-between-strings-a-novel-implementation/feed/" rel="self" type="application/rss+xml" />
	<link>http://aidanlister.com/2004/04/cycling-between-strings-a-novel-implementation/</link>
	<description>Code is poetry</description>
	<lastBuildDate>Tue, 09 Mar 2010 10:53:14 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Cycling between strings &#124; Christian Riesen</title>
		<link>http://aidanlister.com/2004/04/cycling-between-strings-a-novel-implementation/comment-page-1/#comment-771</link>
		<dc:creator>Cycling between strings &#124; Christian Riesen</dc:creator>
		<pubDate>Mon, 15 Jun 2009 07:47:51 +0000</pubDate>
		<guid isPermaLink="false">http://aidanlister.com/?p=43#comment-771</guid>
		<description>[...] Aidan Lister&#8217;s page I cam across a very interesting piece of code that cycles between strings. You instantiate the class with the values to cycle through given to the constructor. Now from here [...]</description>
		<content:encoded><![CDATA[<p>[...] Aidan Lister&#8217;s page I cam across a very interesting piece of code that cycles between strings. You instantiate the class with the values to cycle through given to the constructor. Now from here [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://aidanlister.com/2004/04/cycling-between-strings-a-novel-implementation/comment-page-1/#comment-556</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Wed, 28 Jun 2006 05:58:20 +0000</pubDate>
		<guid isPermaLink="false">http://aidanlister.com/?p=43#comment-556</guid>
		<description>although of more limited use, i accomplished similar functionality using just a function.

&lt;?php
function cycle($array = array()) {
    static $index, $nodes;

    if ($nodes !== $array &amp;&amp; count($array)) {
        $nodes = $array;
        $index = -1;
    }

    $index++;
    if (!isset($nodes[$index])) {
        $index = 0;
    }
    return $nodes[$index];
}
?&gt;</description>
		<content:encoded><![CDATA[<p>although of more limited use, i accomplished similar functionality using just a function.</p>
<p>&lt;?php<br />
function cycle($array = array()) {<br />
    static $index, $nodes;</p>
<p>    if ($nodes !== $array &#038;&#038; count($array)) {<br />
        $nodes = $array;<br />
        $index = -1;<br />
    }</p>
<p>    $index++;<br />
    if (!isset($nodes[$index])) {<br />
        $index = 0;<br />
    }<br />
    return $nodes[$index];<br />
}<br />
?&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Superallanon</title>
		<link>http://aidanlister.com/2004/04/cycling-between-strings-a-novel-implementation/comment-page-1/#comment-500</link>
		<dc:creator>Superallanon</dc:creator>
		<pubDate>Mon, 09 Jan 2006 21:37:44 +0000</pubDate>
		<guid isPermaLink="false">http://aidanlister.com/?p=43#comment-500</guid>
		<description>very nice script.. i always made this with a function and a global var :)
but this way is more comfortable</description>
		<content:encoded><![CDATA[<p>very nice script.. i always made this with a function and a global var <img src='http://aidanlister.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
but this way is more comfortable</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Admin</title>
		<link>http://aidanlister.com/2004/04/cycling-between-strings-a-novel-implementation/comment-page-1/#comment-453</link>
		<dc:creator>Admin</dc:creator>
		<pubDate>Mon, 31 Oct 2005 02:15:35 +0000</pubDate>
		<guid isPermaLink="false">http://aidanlister.com/?p=43#comment-453</guid>
		<description>Wow, at first I was wondering what in the world this could be used for. But now that I thought about it, it can be very useful. Thanks aidan.</description>
		<content:encoded><![CDATA[<p>Wow, at first I was wondering what in the world this could be used for. But now that I thought about it, it can be very useful. Thanks aidan.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
