<?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>Inetminds &#187; duplicate values in array in php</title>
	<atom:link href="http://www.inetminds.com/tag/duplicate-values-in-array-in-php/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.inetminds.com</link>
	<description>Inteminds, PHP scripts, php tutors, Java and ajax scripts explained</description>
	<lastBuildDate>Mon, 22 Mar 2010 18:25:13 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
		<item>
		<title>How to find duplicate values in array</title>
		<link>http://www.inetminds.com/how-to-find-duplicate-values-in-array-207/#utm_source=feed&#038;utm_medium=feed&#038;utm_campaign=feed</link>
		<comments>http://www.inetminds.com/how-to-find-duplicate-values-in-array-207/#comments</comments>
		<pubDate>Tue, 17 Mar 2009 10:11:22 +0000</pubDate>
		<dc:creator>php writer</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[duplicate values in array in php]]></category>

		<guid isPermaLink="false">http://www.inetminds.com/?p=207</guid>
		<description><![CDATA[<div class="addthis_toolbox addthis_default_style " addthis:url='http://www.inetminds.com/how-to-find-duplicate-values-in-array-207/' addthis:title='How to find duplicate values in array'  ><a class="addthis_button_facebook_like" fb:like:layout="button_count"></a><a class="addthis_button_tweet"></a><a class="addthis_counter addthis_pill_style"></a></div>simple way to find the duplicate values in array. function array_duplicates_values($array) { if(!is_array($array)) return false; $duplicates = array(); $unique = array_unique($array); if(count($array) &#62; count($unique)) for($i = 0; $i &#60; count($array); $i++) if(!array_key_exists($i, $unique)) $duplicates[] = $array[$i]; return $duplicates; } above function will return the duplicate values in array.<div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://www.inetminds.com/how-to-find-duplicate-values-in-array-207/' addthis:title='How to find duplicate values in array' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></description>
		<wfw:commentRss>http://www.inetminds.com/how-to-find-duplicate-values-in-array-207/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

