Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP 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: 65118
89
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