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!
where $row_orders_round['region_id']=="002"
and i recive the 11 inde!!!!!
but in 11 index its "2" and not "002"
what is going on here?
thnaks i nadvane
peleg
as an array with string elements like this :
while($row=mysql_fetch_array($result)){
array_push($1stOpenRounds,"".$row['myVal1']);
array_push($1stOpenRounds,"".$row['myVal2']);
array_push($1stOpenRounds,"".$row['myVal3']);
Right, but you're in effect trying to match '2' with 2
So while '2' == 2 , '2' !== 2 i.e the values are the same but the types differ.
Did you try using the third argument to array_search() ?
well i am not at work a t the moment but i can tell u for sure that i tried to compare "002" with "002"
does the way i push values into the array dosent make them string?
is there a way to convert int into a string?