This week's book giveaway is in the Java in General forum.
We're giving away four copies of Think Java: How to Think Like a Computer Scientist and have Allen B. Downey & Chris Mayfield on-line!
See this thread for details.
Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Array

 
Anand Loni
Ranch Hand
Posts: 150
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have php array like this

Array
(
[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.

Thanks
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64827
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I cannot tell from your example what the structure of the array is. Could you do better?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic