Re: cvs: phpdoc /en/reference/strings/functions stripos.xml strpos.xml strrpos.xml

From: Date: Fri, 17 Feb 2006 12:53:51 +0000
Subject: Re: cvs: phpdoc /en/reference/strings/functions stripos.xml strpos.xml strrpos.xml
References: 1 2  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969371968@lists.php.net to get a copy of this message
Nuno Lopes wrote: > These functions return FALSE on normal operation, not on error. > mysql_connect() for example returns a resource on success or false on > failure. there you shoudn't use mixed. > In this case, the return of false means not found, not a error, ence the use > of mixed. (those pages even have the entity to explain how to use the === > operator..) Maybe you are right. I don't like mixed as you don't know what it usually returns without reading the docs. "String not found" can be also interpreted as a kind of an error. If you persist on your interpretation and others agree, go ahead and commit it again and let me sorry for my bogus reversion. Jakub Vrana

« previous php.doc (#969371968) next »