News
Forums
Search
Members
Sign Up
My Code Newbie
Username
Password
Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET
C.N. Friends
Planet Rome
Link to Us!
Code Newbie
Code Forums
>
Application and Web Development
>
PHP
remove duplicate entries from an array?
User Name
Remember Me?
Password
Register
FAQ
Calendar
Search
Today's Posts
Mark Forums Read
LinkBack
Thread Tools
Display Modes
07-14-2003, 01:04 PM
#
1
(
permalink
)
Admin
$_['Your_Mom'];
Join Date: May 2002
Location: Santee
Posts: 627
remove duplicate entries from an array?
is there a function to remove duplicate entries from an array?
__________________
Urban Clothing
Admin
View Public Profile
Find More Posts by Admin
07-14-2003, 01:06 PM
#
2
(
permalink
)
sde
Moderator
Join Date: May 2002
Location: us.ca
Posts: 4,532
PHP Code:
<?
$array
=array(
1
,
1
,
2
,
2
,
3
,
3
,
4
,
4
,
5
,
5
,
5
,
5
,
6
,
6
,
7
);
$array
=
array_unique
(
$array
);
?>
http://www.php.net/manual/en/function.array-unique.php
__________________
Mike
sde
View Public Profile
Visit sde's homepage!
Find More Posts by sde
07-14-2003, 01:16 PM
#
3
(
permalink
)
Admin
$_['Your_Mom'];
Join Date: May 2002
Location: Santee
Posts: 627
yeah, i coulda searched for it. just trying to liven up the board....
__________________
Urban Clothing
Admin
View Public Profile
Find More Posts by Admin
07-14-2003, 01:30 PM
#
4
(
permalink
)
sde
Moderator
Join Date: May 2002
Location: us.ca
Posts: 4,532
thanks dood, .. for the record i knew that one =) .. i just wanted to provide links like you
__________________
Mike
sde
View Public Profile
Visit sde's homepage!
Find More Posts by sde
Bookmarks
Digg
del.icio.us
StumbleUpon
Google
«
Previous Thread
|
Next Thread
»
Thread Tools
Show Printable Version
Email this Page
Display Modes
Linear Mode
Switch to Hybrid Mode
Switch to Threaded Mode
Posting Rules
You
may not
post new threads
You
may not
post replies
You
may not
post attachments
You
may not
edit your posts
BB code
is
On
Smilies
are
On
[IMG]
code is
On
HTML code is
Off
Trackbacks
are
On
Pingbacks
are
On
Refbacks
are
On
Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
working with Array
Goong
MS Technologies ( ASP, VB, C#, .NET )
3
07-22-2004
01:14 PM
breaking down an array from a form
metazai
PHP
12
07-09-2004
07:18 AM
array max num
Apodysophilia
Java
9
04-10-2003
07:36 AM
Array of chars of chars of, wait, uh...
anon
Standard C, C++
15
01-11-2003
05:15 PM
adding to an array in php
sde
PHP
1
06-12-2002
12:04 PM
All times are GMT -8. The time now is
08:33 PM
.
Contact Us
-
CodeNewbie.com
-
Archive
-
Top
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0 RC8 ©2007, Crawlability, Inc.
Copyright © 2000-2008,
Milano Interactive
Web Hosting provided by
Portal 360 Web Hosting
LinkBack
LinkBack URL
About LinkBacks