I have some trouble with the result of in_array()
. It is not like I would have expected and as I understand the manual.
Simple test:
$_aOperatorsOneOptin = array('DE-010', 'DE-005');
$bMatchPaymentOperator = in_array(0 , $_aOperatorsOneOptin);
if($bMatchPaymentOperator)
echo 'found';
I would expect that I would get no result with this, but $bMatchPaymentOperator is true!
I would expect that
$bMatchPaymentOperator = in_array('DE-010' , $_aOperatorsOneOptin);
is true , which it is. But why oh why is the upper statement true?