<?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 for Zulfadli.net</title>
	<atom:link href="http://zulfadli.net/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://zulfadli.net</link>
	<description>Life, Technology and Personal Finance</description>
	<lastBuildDate>Sun, 11 Mar 2012 09:35:02 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>Comment on Wrap Implode Array Elements in Quotes by Jaylon</title>
		<link>http://zulfadli.net/2012/02/wrap-implode-array-elements-in-quotes/#comment-180</link>
		<dc:creator>Jaylon</dc:creator>
		<pubDate>Sun, 11 Mar 2012 09:35:02 +0000</pubDate>
		<guid isPermaLink="false">http://zulfadli.net/?p=64#comment-180</guid>
		<description>Ali,I&#039;m sure you are aware by now of the indexOf() method for Arrays, but just in case you or ayonne else who stumbles on this post like I did doesn&#039;t know about it, the native indexOf() method will do the exact same thing your getArrayIndex() function does, except that it returns -1 if the item is not found, which is better because you don&#039;t want to use 0 unless the first index is indeed the matching item.Here is your example condensed into 4 lines (though it could easily be just 2 lines) using indexOf() instead:var menus:Array = new Array( Front ,  Right ,  Back ,  Left ,  Top );var selected:String =  Left ;var indexOf:int = menus.indexOf(selected);trace( Found selected item  +selected+  at array index:  +indexOf);</description>
		<content:encoded><![CDATA[<p>Ali,I&#8217;m sure you are aware by now of the indexOf() method for Arrays, but just in case you or ayonne else who stumbles on this post like I did doesn&#8217;t know about it, the native indexOf() method will do the exact same thing your getArrayIndex() function does, except that it returns -1 if the item is not found, which is better because you don&#8217;t want to use 0 unless the first index is indeed the matching item.Here is your example condensed into 4 lines (though it could easily be just 2 lines) using indexOf() instead:var menus:Array = new Array( Front ,  Right ,  Back ,  Left ,  Top );var selected:String =  Left ;var indexOf:int = menus.indexOf(selected);trace( Found selected item  +selected+  at array index:  +indexOf);</p>
]]></content:encoded>
	</item>
</channel>
</rss>

