I am wondering why this code wont work and was hoping to get some help:
$ids_to_check = array('rsm' => array('00540000000yHehAAE', '00530000000ter0AAA',
'00540000000llhVAAQ', '00540000000lllcAAA', '00540000000lllmAAA',
'00540000000llptAAA', '00540000000lltWAAQ', '00540000000lltgAAA',
'00540000000lm20AAA', '00540000000lm2EAAQ', '00540000000lm2JAAQ',
'00540000000lm2OAAQ', '00540000000lm2TAAQ', '00540000000lm2YAAQ',
'00540000000lm2dAAA'), 'fae' => array('00540000000lm2nAAA', '00540000000lm32AAA',
'00540000000lm37AAA', '00540000000lm3CAAQ', '00540000000lm3HAAQ',
'00540000000lm3gAAA', '00540000000lm3hAAA', '00540000000lm3iAAA',
'00540000000lm3jAAA', '00540000000lm3lAAA', '00540000000lm3mAAA',
'00540000000lm3nAAA', '00540000000lm3qAAA', '00540000000lm3rAAA',
'00540000000lm3vAAA'));
$checked = "00540000000yHehAAE";
if ($checked == $ids_to_check)
{
echo 'We found a match';
}
else
{
echo 'we aint found nothing';
}
$checked does match one of the values in the $ids_to_check array and the IF statement is not finding a match. I am sure it is a simple coding error on my part, but i am for a loss here
Any help would be appreciated
TIA,
Mike