Re: PHP 4.0 Bug #8015 Updated: in_array works only with equal variable types

From: Date: Tue, 28 Nov 2000 23:52:37 +0000
Subject: Re: PHP 4.0 Bug #8015 Updated: in_array works only with equal variable types
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-39416@lists.php.net to get a copy of this message
I just notice that that param is not documented, should there be a doc bug opened on this? -Jason ----- Original Message ----- From: <andrei@php.net> To: <php-dev@lists.php.net> Sent: Tuesday, November 28, 2000 11:54 AM Subject: [PHP-DEV] PHP 4.0 Bug #8015 Updated: in_array works only with equal variable types > ID: 8015 > Updated by: andrei > Reported By: mmlyanrcik@charmed.sk > Status: Closed > Bug Type: Arrays related > Assigned To: > Comments: > > in_array() has third argument will enable strict comparison. > > Previous Comments: > --------------------------------------------------------------------------- > > [2000-11-28 14:45:55] mmlyanrcik@charmed.sk > Hi, > I don't know how it's possible but when i have an array which contains 0(zero) and > then I use in_array where i'm looking if some string is in array it says OK string is in_array. Maybe when function should use comparision of variable types it could help. > > > > --------------------------------------------------------------------------- > > > Full Bug description available at: http://bugs.php.net/?id=8015 > > > -- > PHP Development Mailing List <http://www.php.net/> > To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net > For additional commands, e-mail: php-dev-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.dev (#39416) next »