strange problem with array_search

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
pelegk2
Forum Regular
Posts: 633
Joined: Thu Nov 27, 2003 5:02 am
Location: Israel - the best place to live in after heaven
Contact:

strange problem with array_search

Post 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
?>
User avatar
Lord Sauron
Forum Commoner
Posts: 85
Joined: Tue Apr 20, 2004 5:53 am
Location: Tilburg, NL

Post by Lord Sauron »

What is the result of print_r($istOpenRounds);?
Post Reply