Welcome Guest, Not a member yet? Register   Sign In
How to know if a value is inside the array?
#2

[eluser]brianw1975[/eluser]
standard array functions won't work since the values of the array indexes are objects. if possible you might modify your array to create something to the effect of

Code:
Array ( [1] => stdClass Object ( [id_distrito] => 01 ) [4] => stdClass Object ( [id_distrito] => 04 ) [11] => stdClass Object ( [id_distrito] => 11 ) [13] => stdClass Object ( [id_distrito] => 13 ) )

thus the index is the id, at least that's probably the easiest way to do it.


Messages In This Thread
How to know if a value is inside the array? - by El Forum - 02-20-2010, 02:55 PM
How to know if a value is inside the array? - by El Forum - 02-20-2010, 03:09 PM
How to know if a value is inside the array? - by El Forum - 02-20-2010, 03:12 PM
How to know if a value is inside the array? - by El Forum - 02-20-2010, 03:22 PM
How to know if a value is inside the array? - by El Forum - 02-20-2010, 03:38 PM
How to know if a value is inside the array? - by El Forum - 02-20-2010, 04:29 PM



Theme © iAndrew 2016 - Forum software by © MyBB