Note Submitter: nicolaszujev at hot dot ee
----
I wrote this function to check key in array and also check value if it exists...
function in_array_key($key, $array, $value = false)
{
while(list($k, $v) = each($array))
{
if($key == $k)
{
if($value && $value == $v)
return true;
elseif($value && $value != $v)
return false;
else
return true;
}
}
return false;
}
.. very helpful function ...
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.