I am trying to search within an array to see if there is a match, but I
can't get my head around these functions which are supposed to return
TRUE or FALSE.
First I get a list of values from a database and build an array with it
with numerical indexes.
When I finally do a comparison using both ...
in_array($item_ link_md5, $real_id_array) ;
isset($real_id_ array[$item_link_md5]);
I get a number as it's return value and it seems to be the total number
of values in the array, not a simple TRUE or FALSE.
Where am I going wrong here?
can't get my head around these functions which are supposed to return
TRUE or FALSE.
First I get a list of values from a database and build an array with it
with numerical indexes.
When I finally do a comparison using both ...
in_array($item_ link_md5, $real_id_array) ;
isset($real_id_ array[$item_link_md5]);
I get a number as it's return value and it seems to be the total number
of values in the array, not a simple TRUE or FALSE.
Where am I going wrong here?
Comment