Advertisement

10.07.2008 at 10:21AM PDT, ID: 23794536 | Points: 500
[x]
Attachment Details

Return Duplicate values in an Array

Asked by niftyhawk in PHP Scripting Language

I would like some help with a COST-EFFECTIVE and LEAST-COMPLEXITY function which will return me the duplicate values in that array.Start Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
All,
I have an array like this:
Array ( 
	[0] => R0106187451 
	[1] => R0106187452 
	[2] => R0106187453 
	[3] => R0179918417 
	[4] => R0106187451 
	[5] => R0106187451 
	[6] => R0106187451 
	[7] => R0106187451 
	[8] => R0106187452 
	[9] => R0106187451 
	[10] => R0106187451 
	[11] => R0106187453 
      ) 
 
I would like some help with a COST-EFFECTIVE and LEAST-COMPLEXITY function which will return me the duplicate values in that array.
 
So, my output array should be:
 
Array ( 
	[0] => R0106187451 
	[1] => R0106187452 
	[2] => R0106187453 
      ) 
 
Thanks
[+][-]10.07.2008 at 10:30AM PDT, ID: 22661564

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10.07.2008 at 10:32AM PDT, ID: 22661576

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10.07.2008 at 10:32AM PDT, ID: 22661582

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10.07.2008 at 10:32AM PDT, ID: 22661584

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10.07.2008 at 10:52AM PDT, ID: 22661773

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10.07.2008 at 11:02AM PDT, ID: 22661869

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628