Re: [PHP-DEV] Bug in array_search()

2002-02-04 Thread Jason Greene
I just read the paragraph below, sorry I was replying in a hurry. Originally it was the intended behavior for array_search to default to strict, but it was decided to make its behavior follow in_array exactly. -Jason On Sun, 2002-02-03 at 13:24, Sebastian Bergmann wrote: > array_search() alw

Re: [PHP-DEV] Bug in array_search()

2002-02-04 Thread Jason Greene
array_search's behavior mirrors that of in_array(). Both of these functions default to non-strict checking which allows "true"==true. If you set the third parameter to 1 this will not happen. -Jason On Sun, 2002-02-03 at 13:24, Sebastian Bergmann wrote: > array_search() always returns true w