This is a discussion on "Seperating Array Elements" within the JavaScript Forum section. This forum, and the thread "Seperating Array Elements are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
Seperating Array Elements
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
Hi all,
Iam having some problem in my java script. I have one array with some elements which looks like. arr = {'Feng', 'Sue', 'Rob', ''Feng' ', 'Chriss', 'Chriss', 'Sue', 'Charlie', 'Adam', 'Feng', 'Bian', 'Sue', 'Bian', 'Adam', 'Robbin', 'Feng'}; Here i want to seperate all similar names and put them into each diffrent array. The elements of the array may be any no of as the elements are dynamic. plz help me to solve this problem. Thanks & regards. allala. |
|
|
|
#2
|
|||
|
|||
|
Re: Seperating Array Elements
I couldn't find any method from javascript array that can meet your need,see javascript array methods lsit
http://www.developerzone.biz/index.p...=137&Itemid=45 The function you need is like "sort function" in SQL |
|
#3
|
|||
|
|||
|
Re: Seperating Array Elements
The only way I can think of to do something like this is to use Regular Expressions. It's going to be quite complex. Have you any understanding of their use? |
![]() |
| Tags |
| seperating, array, elements |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| PHP XML Counting Elements | Don Logan | PHP Forum | 1 | Mar 18th, 2006 03:03 |
| count of the elements | amit_shetye | PHP Forum | 2 | Dec 6th, 2005 16:21 |
| Selecting certain XML elements | fogofogo | Other Programming Languages | 3 | Dec 5th, 2005 12:49 |
| Sorting a new array from an existing array | Ozeona | Flash & Multimedia Forum | 2 | Sep 20th, 2005 08:43 |
| array unable to check another array so as to be displayed | Ozeona | Flash & Multimedia Forum | 1 | Aug 5th, 2005 10:26 |