Two Laptop Bag
The moose likes HTML, CSS and JavaScript and the fly likes Array Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Array" Watch "Array" New topic


Anand Loni
Ranch Hand

Joined: Jan 20, 2006
Posts: 150

I have php array like this

[0] => stdClass Object
[Name] => abc
[Filter] => any

[1] => stdClass Object
[Name] => xyz
[Filter] => clean

I have assigned this array to javascript object . Now I want to iterate through javascript array.

I want to retrieve value of Filter from the array by comparing name with some value.

I dont know how to iterate over such array.

Please help.


~ Anand,
SCJP 1.5, SCWCD 1.5
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63873

I cannot tell from your example what the structure of the array is. Could you do better?

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: Array
It's not a secret anymore!