<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>The World Of Gavin &#187; associative arrays</title>
	<atom:link href="http://www.gavinwillingham.com/tag/associative-arrays/feed" rel="self" type="application/rss+xml" />
	<link>http://www.gavinwillingham.com</link>
	<description>My opinions on things I have opinions on</description>
	<lastBuildDate>Fri, 28 Jan 2011 17:08:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>PHP</title>
		<link>http://www.gavinwillingham.com/php.html</link>
		<comments>http://www.gavinwillingham.com/php.html#comments</comments>
		<pubDate>Sun, 01 Nov 2009 12:25:37 +0000</pubDate>
		<dc:creator>gavin</dc:creator>
				<category><![CDATA[Content]]></category>
		<category><![CDATA[associative arrays]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.gavinwillingham.com/?p=258</guid>
		<description><![CDATA[Arrays To get the first element of an array (useful for associative arrays): $array = array( 'key1' =&#62; 'value1', 'key2' =&#62; 'value2'); $firstElement = reset($array); To get the first key of an array: $array = array( 'key1' =&#62; 'value1', 'key2' =&#62; 'value2'); $firstKey = key(reset($array));]]></description>
			<content:encoded><![CDATA[<h2>Arrays</h2>
<p>To get the first element of an array (useful for associative arrays):</p>
<pre>$array = array( 'key1' =&gt; 'value1', 'key2' =&gt; 'value2');
$firstElement = reset($array);</pre>
<p>To get the first key of an array:</p>
<pre>$array = array( 'key1' =&gt; 'value1', 'key2' =&gt; 'value2');
$firstKey = key(reset($array));</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.gavinwillingham.com/php.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

