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

[eluser]Sinclair[/eluser]
Hi,

I have an array like this one:
Code:
Array ( [0] => stdClass Object ( [id_distrito] => 01 ) [1] => stdClass Object ( [id_distrito] => 04 ) [2] => stdClass Object ( [id_distrito] => 11 ) [3] => stdClass Object ( [id_distrito] => 13 ) )

How can I know if for example the value '11' is inside this array? I have tested with in_array() but with no success.


Best Regards,


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