Welcome Guest, Not a member yet? Register   Sign In
CI irrelevant, but help please
#2

[eluser]xwero[/eluser]
that's some weird code Smile
If you just created the array nothing is in it so you don't need to check if the $value exists.
I'm not sure if you want to check if the value is present in the array as a key or as a value.
If you want to check if the key exists
Code:
if(isset($Temp[$value]))
If you want to check if the value exists (in a one dimensional array)
Code:
if(is_numeric(array_search($value,$Temp)))


Messages In This Thread
CI irrelevant, but help please - by El Forum - 01-04-2008, 02:52 AM
CI irrelevant, but help please - by El Forum - 01-04-2008, 02:59 AM
CI irrelevant, but help please - by El Forum - 01-04-2008, 03:00 AM
CI irrelevant, but help please - by El Forum - 01-04-2008, 03:43 AM
CI irrelevant, but help please - by El Forum - 01-04-2008, 05:12 AM



Theme © iAndrew 2016 - Forum software by © MyBB