Page 1 of 1

strange problem with array_search

Posted: Thu Aug 26, 2004 9:22 am
by pelegk2
i have this array :

<?php


$lstOpenRounds=Array
(
[0] => "006"
[1] => "146"
[2] => "1"
[3] => "016"
[4] => "157"
[5] => "1"
[6] => "018"
[7] => "150"
[8] => "1"
[9] => "019"
[10] => "158"
[11] => "1"
)
?>



when i do :
array_search ($row_orders_round['region_id'],$lstOpenRounds);
where $row_orders_round['region_id']=="018" i recive false!
why is that?
thnaks i nadvance
peleg
?>

Posted: Thu Aug 26, 2004 9:33 am
by Lord Sauron
What is the result of print_r($istOpenRounds);?