FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » why does in_array return true
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
why does in_array return true [message #169869] Wed, 29 September 2010 01:24 Go to previous message
heartmeat is currently offline  heartmeat
Messages: 1
Registered: September 2010
Karma:
Junior Member
hello all

I must be missing something obvious, but, given:

var $haystack = array(0);
var $needle = '0_50';

why does:

in_array($needle,$haystack) return true?

(PHP Version 5.2.4-2ubuntu5.10)

thanks.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: PHP manual note
Next Topic: Out Of Memory with Memory_limit à -1
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Wed Nov 27 03:02:09 GMT 2024

Total time taken to generate the page: 0.05933 seconds